From: yawo on 3 Aug 2010 00:23 Hi Everyone, I am new on this platform so please excuse me if my question was discussed before. I would like to simulate a 60 Hz signal with matlab through my PC sound card and be able to observe that signal on an oscilloscope (Need a voltage source but don't want to use a function generator). I've tried couple functions such as "Sound, wavewrite, waveread .."and have also tried "the function generator in simulink" without success. can anyone points me in the right direction may it be books or documents to read thanks.
From: Wayne King on 3 Aug 2010 01:30 "yawo " <rcodjia(a)gmail.com> wrote in message <i385j8$hs4$1(a)fred.mathworks.com>... > Hi Everyone, > > I am new on this platform so please excuse me if my question was discussed before. > I would like to simulate a 60 Hz signal with matlab through my PC sound card and be able to observe that signal on an oscilloscope (Need a voltage source but don't want to use a function generator). I've tried couple functions such as "Sound, wavewrite, waveread .."and have also tried "the function generator in simulink" without success. > can anyone points me in the right direction may it be books or documents to read > thanks. Hi, if you enter: t = linspace(0,1,1000); x = cos(2*pi*60*t); soundsc(x,1e3); This doesn't output a 60-Hz sine wave through your sound card? Wayne
From: yawo on 4 Aug 2010 21:12 "Wayne King" <wmkingty(a)gmail.com> wrote in message <i389hl$p4t$1(a)fred.mathworks.com>... > "yawo " <rcodjia(a)gmail.com> wrote in message <i385j8$hs4$1(a)fred.mathworks.com>... > > Hi Everyone, > > > > I am new on this platform so please excuse me if my question was discussed before. > > I would like to simulate a 60 Hz signal with matlab through my PC sound card and be able to observe that signal on an oscilloscope (Need a voltage source but don't want to use a function generator). I've tried couple functions such as "Sound, wavewrite, waveread .."and have also tried "the function generator in simulink" without success. > > can anyone points me in the right direction may it be books or documents to read > > thanks. > > Hi, if you enter: > > t = linspace(0,1,1000); > x = cos(2*pi*60*t); > soundsc(x,1e3); > > This doesn't output a 60-Hz sine wave through your sound card? > > > Wayne Hi Wayne, thanks for the reply. that script and any other involving the function "sound" generates an error code 48 which says that I am attempting to use Sound as a function.. Maybe you know how to fix that bug. thanks
From: Matt Fig on 4 Aug 2010 22:37 "yawo " <rcodjia(a)gmail.com> wrote in message > > Hi Wayne, > thanks for the reply. that script and any other involving the function "sound" generates an error code 48 which says that I am attempting to use Sound as a function.. Maybe you know how to fix that bug. > thanks It is not a bug. I would be willing to bet that you made a script file and saved it as sound.m. Now when you try to call the built-in MATLAB function SOUND, your file is masking it. Also, Wayne didn't use SOUND, he used SOUNDSC.
|
Pages: 1 Prev: How to perform sorting for each column/attribute Next: deploy tool in matlab 2010 |