LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Initialize a boolean control from a read function

I have some lines that will be managed by a boolean control. However, I need to initialize these individual boolean controls by reading their associated on/off status lines. How do I intialize boolean controls from a read function?
0 Kudos
Message 1 of 4
(3,663 Views)
Hi Scott-e,

I am not sure I understood your question. For instance, can you give more details at what you are trying to do.

When you mention that you need to initialize the boolean by reading their associated ON/OFF status, do you mean that the status is in textual form?

I modified your code to include initialization of the boolean from the text. I included initialization (extra default) for a case where no text is present.

As I stated earlier, I am not sure that I understood your question, please provide more details so that I may more accurately provide a response.

Regards,

JLV
Message 2 of 4
(3,663 Views)
could you save your example as a 6.0 if possible - will not open
"Ok, I'll try to explain. Lets say I have a signal (indicator) that indicates that a valve is open (T) or closed (0). I read this value and intialize the associated valve control with this value. That way the control line shows the present state of the valve. I quess I could simply have a toggle for open / close write to valve control also." thanks
0 Kudos
Message 3 of 4
(3,663 Views)
Create a local variable of the valve control and wire the signal to that.
0 Kudos
Message 4 of 4
(3,663 Views)