LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sine wave generation

I want to generate a sine wave signal with dc offset, i.e: V(t) = 5 + o.5*sin(wt) then to send to a scope ( real scope through DAQ card ). But I need it to work for 10 seconds then to stop, I have the DAQcard and I know how to configure it to take the signal from it, but since I am a beginner with LV I do not know how to generate my signal for specific time
0 Kudos
Message 1 of 3
(3,211 Views)
If you are using something like the sine waveform function, you have a sampling info input. That defines the sample rate and the number of samples. It's simple math. It's simple math. If you have a sample rate of 1000 Samples/sec and want 10 seconds, you multiply the 1000 by 10 to get 10000 samples. Pass this waveform to a DAQmx/DAQ Assistant configured to use timing from the waveform.
0 Kudos
Message 2 of 3
(3,196 Views)

Hi welcome to LabVIEW!

 

I would say you best starting point would be the built in labview DAQ examples.Have you seen them?

 

If not, go to Help>>NI Examples>>Hardware Input/Output>>DAQmx>>Analogue Generation>>.. and take a look through some of the AO examples.

 

The solution would either to do a continuous output after stop the loop around the DAQmx write after 10 seconds or built a 10 second waveform and just write it once to the DAQ device.

 

Hope this helps,

 

James 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 3 of 3
(3,194 Views)