LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I initialize a boolean control to a read value

I need to perform a "read from digital line.vi" which I will get a
boolean value x from a read port of a switch. I want to initialize a
control write line (write to digital line.vi) to this x value. This is
so the INITIAL boolean control button is showing the present state of
the switch before it is set to another value. New to labview (version
6.0i) , what is a good way to do this?
thanks
( PC-DIO-96 card )
0 Kudos
Message 1 of 2
(2,707 Views)
Hi,

Right click on your control, select Create/local variable. Then wire the output x from "read from digital line.vi" to the local variable. This way the control will be set to the value x.

Hope this helps,
Dan
Message 2 of 2
(2,707 Views)