From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 9402/cDAQ9185 How to dynamic change a dutycycle of a fixed frequency output

Solved!
Go to solution

Hi.

I have a NI 9402 were I need to dynamically change the dutycycle "on the fly" on a predefined digital output frequency (up to 2kHz).

 

Is this possible with a cDAQ or will this require a cRIO solution?

0 Kudos
Message 1 of 3
(1,782 Views)
Solution
Accepted by topic author uf

You should be able to do this with a continuous counter pulse generation task using DAQmx on a cDAQ.  cRIO shouldn't be necessary.

 

You'd use one of the chassis counters and route its output to a DO pin.  Note that you may need to write both freq *and* duty cycle together to make the duty cycle change "take hold."   See this thread for more info.

 

 

-Kevin P

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
Message 2 of 3
(1,723 Views)

Many thanks Kevin 🙂

 

I got it now

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