04-28-2009 11:04 AM
Hello,
I've been trying to do something very simple : using an analog output of the card PCI 6221 to produce a sinus curve of frequency 50 Hz. For this I used a Vi to create a sinus curve and the different DAQmx VIs. But I have difficulties understanding the principle of virtual channel and I think I'm doing a mistake setting the sample rate and samples number : one time for the sinus vi, second time for "DAQmx - Timing". Should I use the same values for both of these VIs ?
On my oscilloscope, with frequency=50Hz and sample rate=1kHz, I get a null signal. Then depending on both values, I get differently rated signals. For example with f=1Hz and sr=10kHz, a sinus of frequency 0,7 Hz.
Solved! Go to Solution.
04-28-2009 11:12 AM
Do you want a sine wave?
A "sinus" wave is a completely different thing. It is a heartbeat rhythm. http://en.wikipedia.org/wiki/Sinus_rhythm
04-28-2009 11:25 AM
04-28-2009 11:37 AM
04-28-2009 11:49 AM
04-29-2009 08:09 AM
Yes, thanks for your advice. I used the structure given in the example and now it's working fine. I'm still not sure what I did wrong though.
I would have a second question now (should I create a new topic?):
I put a continuous sine wave on the analog output. As soon as this is running, (or maybe after a short delay) I want to measure a limited amount of samples on my analog input. How can I be sure, it's not going to start measuring before the output is properly set ?
I don't think a trigger would solve the problem since I'm going to vary the output Amplitude.
04-29-2009 09:48 AM
04-29-2009 10:55 AM