LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate a sinewave with dutycycle using DaqmxwriteCtrFreq

HI,
 
We r required to generate a frequency signal using a sinewave with dutycycle.
 
Can we generate using Daqmx functions like DaqmxWriteCtrFreq? Can you post the example for generation of frequency signal using a sinewave with dutycycle.
 
Response required ASAP
 
Regards
krishna
 
 
 
0 Kudos
Message 1 of 2
(3,615 Views)
Hello Krishna,

Are you trying to create a sine wave with a configurable frequency or a square wave with a duty cycle? 

If you want to create a square wave you can use a counter and a shipping example like those found in: C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Counter\Generate Pulse. 

Good luck!
Micaela N
National Instruments
0 Kudos
Message 2 of 2
(3,596 Views)