LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

acquiring and generating signals

Solved!
Go to solution

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

0 Kudos
Message 51 of 54
(1,142 Views)

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 ?

Rajnikant Singh
Iowa State University (Research Assistant)

0 Kudos
Message 52 of 54
(1,140 Views)

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

 

0 Kudos
Message 53 of 54
(1,126 Views)
Solution
Accepted by topic author raj_iastate

hi

 

Rajnikant Singh
Iowa State University (Research Assistant)

Download All
0 Kudos
Message 54 of 54
(1,107 Views)