LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible to use a control as an indicator?

Solved!
Go to solution

I'm building a simple form in LabView to talk with a device over cameraLink. I can read and set data fine, however, I'm attempting to build up a form with all of the possible configuration values in either text boxes or numerics. 

 

What I would like to accomplish is to use a GET button and a SET button to pull data from the text box and write it to the device, and also being able to read data back from the device and update the text box as appropriate. 

 

The communication back and forth works, but I seem to be forced to have a seperate INPUT and OUTPUT textbox instead of just using a control.

 

Is there a way to use a single textbox as both an INPUT and an OUTPUT?

0 Kudos
Message 1 of 5
(3,427 Views)
Solution
Accepted by topic author JasonTraud

You could use either a local variable or a property node to write to a control

Message 2 of 5
(3,423 Views)
Property node can be used as read/write data.. of a control or an indicator...
If you want to use between vi use reference of the specific control
----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 3 of 5
(3,413 Views)

You need to make it a control so it can be operated at run time.

If you only need to write to it from within the same VI, use a local variable (not a value property node!)

If you have two modes depending on program state (read or write) you can disable it in the state when it should not be able to be edited by the user.

Most likely, you need to validate the string input to make sure it is formatted correctly before sending it to the device.

0 Kudos
Message 4 of 5
(3,405 Views)

Thanks! That was the solution I was looking for.

0 Kudos
Message 5 of 5
(3,354 Views)