LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control fan duty cycle dynamically in labview

Solved!
Go to solution

I am trying to send pulse signals to my DAQ for control. However, it is only able to pick up the first duty cycle I input. The fan's speed doesn't change even when I change the duty cycle. Any help?

0 Kudos
Message 1 of 6
(520 Views)

Thanks for posting your VI, but it's in 2023 and a lot of us on the forums use earlier editions.  If you back-save it to 2019 or so a lot more of us can look at it.

0 Kudos
Message 2 of 6
(502 Views)

2019 version attached.

0 Kudos
Message 3 of 6
(446 Views)

I'm curious about the device you are trying to control.  I make low-frequency pulses (up to a few hundred Hz) with a DO line by writing alternating T and F to the DO line and doing the timing with a Wait (ms) function in a While Loop.  In another application, I program a Counter/Timer line with (again) a fairly low frequency and create DO pulses that drive a stepper motor.  I would expect to see a DAQmx Timing function in your code ...

 

What device are you using?  I assume it might be a USB-something, and you are using the so-and-so sub-system (AO, DO, Counter/Timer, etc.) -- please clarify.

 

Bob Schor

 

 

0 Kudos
Message 4 of 6
(436 Views)
Solution
Accepted by jkas

Try adding a timing node, Implicit with Continuous samples, before the task starts:

 

Kyle97330_1-1709927670072.png

 

Message 5 of 6
(432 Views)

I think you have several problems here.  Take a look at the examples in Find Examples... 

NIquist_0-1709927307354.png

 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 6 of 6
(430 Views)