LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

automated valve control with different on and off time

Hello, I am new to coding with Labview and I am trying to execute following problems:

 

We are trying to use automated valve so that when program starts, the valve will be opened for 2 minutes then closed for 5 minutes - repeating this cycle until program is stopped.

I found some example on-line for a code that control on/off time of LED using the flat sequence structure (attached). It controlls the boolean so that it's on and off for certain time. The problem is, how do I interface this with DAQ assistant for the valve? In other words, I need to make the continuous sequence of on-2 miniutes off-5 minutes as an input to DAQ assistant so that will communicate with

the valve, but I am not sure how to do that.. I have attached the image of where I am at right now.. Any advice will be greatly appreciated! Thank you in advance. 

0 Kudos
Message 1 of 7
(4,347 Views)

Hi,

 

The DAQ assistant has an input on its left hand side where you can wire in the boolean value.  If the DAQ assistant is run in the loop, it should update with each iteration of the loop.  

James K.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 7
(4,306 Views)

Hello,

 

Thank you so much for your reply. 

Again, I am very new to labview coding so this might be a silly question:

I want the DAQ assistant board to receive both F and T sequentially, at the time interval set by the clock in side the sequence structure - so in this case, do I connect both F and T out of the sequence structure to DAQ assistant board input? Also, when I tried that, I got an error because the input of DAQ assistant board needs to be 1-D boolean array. How do I resolve this issue?

 

Thank you very much for your help.

 

0 Kudos
Message 3 of 7
(4,299 Views)

stay away from flat sequence programming design...better off with a simple state machine Smiley Wink

valve control_BD.png

Message 4 of 7
(4,280 Views)

Thank you so much !

0 Kudos
Message 5 of 7
(4,258 Views)

Hello,

 

I am a new lab view user. I am trying to develop a virtual panel to simulate the flow from tank by a control valve. For now i have a water tank and the water flow to the tank. I need to place a pipe for the outflow, a control valve on the pipe at the outflow and i need to make control valve closure according to time. I need to plot pressure variations at the outflow w.r.t control valve closure. Kindly give me inputs.

0 Kudos
Message 6 of 7
(4,180 Views)

Are you simulating the system or are you getting value data from a real system? If you are simulating the values then when you calculate the value of the pressure at the valve then that should already take into account the status of the valve. Then you will just need to plot the two sets of data on a graph.

 

Also, are you using the DSC? If so I would recommend that you post your in the LabVIEW DSC forum as the people on that forum will have more experience in the DSC and will be able to help you further. In addition it is usually better to post a new question in a new post rather then in older forums. 

Alex D
Systems Engineer
Academic Research
National Instruments
0 Kudos
Message 7 of 7
(4,165 Views)