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: 

Reset String Control Box Property Node Every Time VI Runs

Hello, 

 

How do I reset property node states (In particular, Text.BGColor) for string control boxes every time VI runs ? I found that once the color of a property node changes during the program, it does not change back for the next run. 

 

Regards

 

FLiu

0 Kudos
Message 1 of 3
(2,472 Views)

You need to set it again at the beginning of your VI.

0 Kudos
Message 2 of 3
(2,463 Views)

If your VI is a state machine, simply put property nodes to set the values the way you want them in the Initialize state. You could also reset them in a Shutdown state just before the VI stops.

 

If you do not have a state machine architecture, it might be worth considering. Otherwise you will need to find a place for those property nodes where the dataflow will cause them to run at the very beginning of the program.

 

Lynn

0 Kudos
Message 3 of 3
(2,460 Views)