LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control Defaults...

Is there any way that I can dynamically set one control's default?

I want to be able to choose a com port, quit, come back, and have the com
port remembered.

I would prefer not to change any other control's defaults, if there's a way
around it...
I have tried using "Make Current Value's Defaults" invoke node, but I'm
having trouble with it.

Thank you in advance,

--
Slade Squire
Programmer
Rectifier Technologies Pacific
Melbourne, Australia
SladeSquire@rtp.com.au
0 Kudos
Message 1 of 2
(2,666 Views)
I find the Invoke node method quite taxing. Its because your changing a default value in real-time, which is the opposite of the definition of default.
However, the method I typically choose is making a text file that holds all the values needed for default. Read it upon program initialization and forward the values to the controls as necessary. If these values change in real-time, write them to the same text file (usually in the termination/clean-up phase).

There are examples and discussions about this subject throughout this site, and it may be a matter of personal preference as to which method to use, but I like the simple text config files.

Good luck with it,
Doug
0 Kudos
Message 2 of 2
(2,666 Views)