LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Best way to produce PWM using NI-6008

Solved!
Go to solution

Hello,

 

I am looking for best method to produce Rectangular waveform with a specific pulse width/pause ratio using NI-6008. It does not matter if I use DO or AO port. Important is frequency which should range soemthing between 1 Hz to 1kHz. (so far I have understood from datasheet that the AO has max output frequency of 150 Hz which does not meet our requirement)

 

I have tried using frequency functions (DAQmxWriteCtrFreq or DAQmxWriteCtrFreqScalar) in the examples which were shipped with the device but get an error like channel does not support the function or device does not have channels to support these functions.

 

Regards

RB

 

 

0 Kudos
Message 1 of 3
(3,465 Views)

Hi,

 

which error message do you exactly get? Can you post a screenshot?

If there is an error code please let me know which one.

 

Best regards

Suse

______________________________
Certified LabVIEW Developer (CLD)
0 Kudos
Message 2 of 3
(3,456 Views)
Solution
Accepted by topic author dotNet_to_LabW

I do not think that NI/6008 shall be used for this purpose because max frequencz at AO is 150 Hy and DO are static, so they can not be used for this purpose. Am using Frequency generator now and is working fine.

0 Kudos
Message 3 of 3
(3,426 Views)