LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I Generate a waveform like this (See Attached Document) (Hint: Using DutyCycle I want to generate waveform)

HI,
 
I would like to generate a wavefome (see attached Document).
 
AS you see my requirement , In my Application user will enter Tm(Mark) and Ts(Space) I have to calculate DutyCycle for generation of Frequency Signal and Generate the wavefome.
 
please help me in this requirement
 
I would be pleasure if u send me a sample program
 
Regards
krishna
0 Kudos
Message 1 of 4
(3,306 Views)

Thanks for your reply

can u tell how we can implement the same in PCI-6723

 

Regards

krishna

0 Kudos
Message 3 of 4
(3,274 Views)
Hi Krishna,

Generating your waveform should be no different for you PCI-6723 than any other card that uses the NI-DAQmx drivers.  Looking at the example code posted by bman (Brian) in the thread listed in mvr's post, he creates a Wavegen function that creates the buffer of data to output.  You can do this similarly and use the ContGen-IntClk.prj found in your CVI directory, then samples\DAQmx\Analog Out\Generate Voltage\Cont Gen Volt Wfm-Int Clk .  If you need to update your waveform while the data is being written out, simply add one of the DAQmx Write functions within the while loop that runs before the task is done and write the updated data points into the data buffer for the Write function.

Thaison V
0 Kudos
Message 4 of 4
(3,257 Views)