LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i reset all controls to their standard value and rise value change events

Solved!
Go to solution

I can use the invoke node with a vi reference to set all controls to their standard values.

As i would like to protocol all control values at the beginning of the program, i would

like to rise value change events, too.

The protocol function is already implemented for the value change events but they are rised

only by user interaction, not on program startup and i want to change that.

 

Thank you!

 

0 Kudos
Message 1 of 4
(3,193 Views)
Solution
Accepted by topic author Labuser16383

Hi Labuser,

 

read default values from a file and set them in a loop using Value(Sgnl) properties…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(3,183 Views)

Ok, thats a possibility.

But isn't it possible to get an array of references to all vi controls and then use an invoke node to (signaling) set the default values?

I remember something like this but i was currently not beeing able to reproduce it.

 

0 Kudos
Message 3 of 4
(3,171 Views)

Hi Labuser,

 

- To force a value change event you need to write into a Value(Sgnl) property node.

- To set the default value for a control this way you need to know the default value of that control before you can write it into the mentioned property node.

- As I couldn't find any property/method that reads the default value you need to provide default values from other sources: files are a common way to store parameters.

 

But you can search any longer for other methods…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(3,167 Views)