FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing a Boolean Value

I have a number of virtual valves placed on my front panel to control solenoid valves. When these virtual control valves are pressed, they illuminate to a green color and LV writes a 1 to my fieldpoint modules, actuating the valve. When the valve is turned off, the color is red and LV sends a 0 signal to the valve. I want to know if I can switch the signal states of the valve, so that a 1 is written during a red color state, and a 0 is written during an illuminated or a green colored state.
0 Kudos
Message 1 of 2
(3,101 Views)
Prashant,

There are two way to accomplish this:

1. You can put a NOT vi function in the diagram, on the wire from the valve control to the rest of your VI.

2. You can edit the colors on the virtual valve controls so that the red and green are switched.

Hope that works for you!
0 Kudos
Message 2 of 2
(3,101 Views)