01-31-2013 10:52 AM
I am not really sure what you are talking about with the cycles. As is explained in the document I posted, the samples per channel input on the DAQmx timing VI really has more to do with memory allocation on the buffer of the card than it has to do with cycles. I think you might be off on the wrong track here.
Leah
01-31-2013 11:13 AM
With cycles I meant frequency which is cycles per seconds. Now with a given frequency lets say 20Hz which is 20 cycles per sec, if I am generating at a rate of 100000samples/sec then it should write 100K samples per 20 cycles which means if I want to control the number of cycles to be written then all I have to do is decrease the number of samples/channel to be written. So If I want to write only one cycle then I should only write 100k/20 samples. Tell me if I am making sense to you ?
01-31-2013 12:15 PM
If you want to change the characteristics of the sine wave that you are generating, you should alter your inputs into whatever VI you are using to create your sine wave. This is independent of your sample rate for you analog read or write VIs.
Take a look at this example code: http://zone.ni.com/devzone/cda/epd/p/id/4856
In this example, they adjust the characteristics of a sine wave using the Sine Waveform VI in the Waveform generation palette.
Leah
02-01-2013 01:53 PM
hi