LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Valve control - user controlled, then self controlled

Hello, I am still trying to figure out a method of controlling a discharge valve for compressor testing.  The valve is controlled by a slider, but when it hits a certain point of being closed, the compressor surges.  At that surge point, I want the user to click a button, and then have the valve slowly open while the data is being sent to a file.  This way, the data is recorded and the valve opens to prevent damage to the compressor all at the click of one button.  I have the VI up and running, all except for the opening part of the valve.  I have included a simple example of where I am going with the valve control.  Any advice would be appreciated, for then I can implement that code for the valve opening into the rest of my programming.
 
Thank you,
 
 
Jmc
0 Kudos
Message 1 of 2
(2,168 Views)
JMC,

Here is an example which does what I think you want. I added a "valve setting" indicator which becomes the value you send to the valve driver. I disable the Slide when the Surge button is pressed. The event structure needs a separate case for each type of event you want to capture and should be enclosed in a loop.

Lynn
0 Kudos
Message 2 of 2
(2,148 Views)