From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically returning to default values

Solved!
Go to solution

Is there a way in LabVIEW to easily cause a string/int/dbl to return to its default value after an event occurs? I'm attempting to make a UI that goes through the same step many times and it would be easiest to set the entry values back to the default after every iteration.

 

Thanks.

Using LabVIEW 2009 on Windows Vista
0 Kudos
Message 1 of 6
(2,621 Views)

Hi,

 

either write to a local after "that event" occurs or you use the method "reinit all to default" for the vi...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,609 Views)
If you don't want to reinit ALL controls to their default value, you can do something like that for instance...
0 Kudos
Message 3 of 6
(2,601 Views)
Can you please save that VI as an earlier format? I don't believe I have access to version 8.6. Thanks.
Using LabVIEW 2009 on Windows Vista
0 Kudos
Message 4 of 6
(2,589 Views)

Hi,

 

@dragonlord...:

Please always note your LabView version, when it's not the newest! The signature is a very good place to do so...

 

@krs:

Attaching a picture will open the block diagram for users of each LabView version Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(2,582 Views)
Solution
Accepted by topic author dragonlordged

LabVIEW 8.0...Otherwise there is a screenshot in zip folder.

 

Best,

0 Kudos
Message 6 of 6
(2,577 Views)