LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a string control to work as an indicator as well as a control

Solved!
Go to solution

Hi!

 

I have multiple string controls in my front panel, and I also want the control box to work as an indicator. The user should be able to write in the control boxes and then save all this information by using an altered version of the example "Write Configuration Settings File.vi". Then the user should be able to retrieve the string information later on by using an altered version of the example "Read Configuration Settings File.vi". The problem is that I dont want separate control and indicator boxes. I want the retrieved string information to show up in the string control boxes instead. 

 

Is this possible? If not, can you try to give me some pointers on what I can do?

 

Best regards

0 Kudos
Message 1 of 4
(2,227 Views)
Solution
Accepted by topic author autmasjon3ea

You can use a local variable of the control to be able to programmatically write data to it.

Message 2 of 4
(2,226 Views)

Thanks for the reply. It works. I actually thought about using local variables, but for some reason I didnt think it would work for this specific task. 

0 Kudos
Message 3 of 4
(2,223 Views)

This is actually one of the legitimate uses for a local variable.

0 Kudos
Message 4 of 4
(2,221 Views)