LabVIEW

cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

control or indicator?

Solved!
Go to solution

I have a subvi that the user uses to edit some settings used by the main vi. ie, click a settings button, and the subvi pops up.

 

Anyway, the subvi reads a text file to load the previously saved settings.  Question is, should the elements of the text file be put into a control or indicator?  The user needs to be able to edit the values on the subvi panel, and then save them again.  Seems I can do this with both controls or indicators.

 

-Mike

0 Kudos
Message 1 of 4
(2,812 Views)
Solution
Accepted by KSU Flyer

KSU Flyer wrote:
Seems I can do this with both controls or indicators.

Not quite. Indicators cannot be changed by a user when the VI is running. So, in your case you'd want to use controls. When you read the file for the saved values you can simply update the values of the controls using local variables or property nodes. Be careful about race conditions with local variables.

Message 2 of 4
(2,801 Views)
Thanks!  I get nervous about using property nodes to change values...seems like I read that wasn't a good thing.
0 Kudos
Message 3 of 4
(2,798 Views)
Its not that it isn't good.  It is slow compared to other methods.  But even with property nodes, you have a chance for a race condition.
- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 4
(2,791 Views)