LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control solenoid direction valve with Labview

Hi everyone,

 

I am very new to Labview, so please be patient with my "acknowledge"

I need to control a solenoid operated direactional valve in hydraulic system with Labjack U12. I am using EDigitalOut vi. to control two Grayhill I/O modules 70M-ODC5 (DC output) for set mode and retract mode.

My goal is to switch two modes atumatically for at leat 1000 cycles, and the sequence is active set mode for 20 secs, then de-active set line, active the retract mode for 10 secs, then de-active retract line. active the set mode again.... 

Labview version: 2011

Firmware: Labjack U12, RB 16 relay board

 

I have a draft of my vi. attached, as for now, I can only get it running for one cycle, hope some can take a look at this and help me out on how to get it running continuiously,

 

Thank you!

 
0 Kudos
Message 1 of 2
(2,524 Views)

You will have to put your code into some kind of a loop to make it run more than once. If you use it as a subVI which you put into a loop, I am curious about your case structure which does nothing if it is not the first call (which you presumably keep track of). Was it intentional to leave the "false" case blank?

0 Kudos
Message 2 of 2
(2,505 Views)