LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic control of solenoid valve

Hi, I need help automatically controlling a solenoid valve.  My goal is for the valve to open for 2s every 10s once I hit run without having to toggle the Boolean manually each time. 

0 Kudos
Message 1 of 3
(128 Views)

The easiest implementation is using a state machine 

LVNinja_0-1732570352105.png

 

0 Kudos
Message 2 of 3
(108 Views)

Thanks for your reply. I found one example on here which I have tried to adapt for my case (attached). Once the code starts, what I intend is for the valve to be closed for 10s and then open for 0.2s in that order without any manual intervention from my end until it is stopped. Can you please check for me if the vi attached will work as I intend to? I am also unsure about the positioning of the DAQmx vis.

0 Kudos
Message 3 of 3
(34 Views)