LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

frequency/duty cycle

How do I output frequency and duty cycle on ao0. I know you can use DAQmxCreateCOPulseChanFreq for outputting on ctr0 or 1 but I want to output on ao0 or ao1, either analog channel is fine. I'm using a DAQ-6036E, Labwindows 7.1, on Windows XP. Thank you.
0 Kudos
Message 1 of 4
(3,215 Views)
In traditional NI-DAQ you could use WFM_Op to generate a signal. You must pass to the function an array that describes the signal to generate, the number of iterations (0 for continuous generating) and the sample rate: by configuring adequately the array you can generate whichever freq/dty combination you want: since I assume you want to generate a sqare wave, calculating the array is quite simple.

Working with an analog channel, you can also determine the level of High and low level: you could for example have a squadre wave from -5 to +5 V or other levels at your desire, all depends on how you structure your array.

I don't know which function has substituted WFM_Op in DAQmx.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,212 Views)
Yea that's why I want to use the analog channel for frequency and duty cycle, that way the user can also control voltage - low/high from 0 - 10 V. Just trying to actually figure out how to do that now =]
0 Kudos
Message 3 of 4
(3,206 Views)
Please see this thread
-Alan A.
0 Kudos
Message 4 of 4
(3,186 Views)