LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

please how can I reinitialized all command and my indicator of a VI in one time ?

I have more than 60 command and indicator in my VI and I want to reinitialized them in one step

Please help me ( In english or french, )
0 Kudos
Message 1 of 7
(3,143 Views)
What does it mean 60 commands - controls?

If yes, do you want reinitialize them programmatically or manually?

1) Manually - In menu: Operate/Reinitialize All To Default Value.

2) Programmatiaclly - you need open reference to your vi (use Application Control/Open VI reference), click right mouse button on "vi reference" output, select create\method\Reinitialize All To Default.

I hope that will help you.
Good luck.
0 Kudos
Message 2 of 7
(3,143 Views)
Thanks but my problem is that there are a lot of reference and I want to reinitialized all. It's very long to select each one and to create a method point for each one.

Can I reinitialize all my references in one step ?
Thanks
0 Kudos
Message 4 of 7
(3,143 Views)
This method reinitialize all controls and indicators in vi in one step.
0 Kudos
Message 5 of 7
(3,143 Views)
Another method is to get all controls value method.
Find all controls you want to reinitialize by they names(set they names with some prefix that will sign about that) and use method set control value.

Attached example.
0 Kudos
Message 6 of 7
(3,143 Views)
Thank You

It runs great
0 Kudos
Message 7 of 7
(3,143 Views)
IF you wanna re-initialise them to a know state, you may wanna try

1) create a property node for each of them, wire the property nodes with prefered value upon re-initialsation.

2) put all the property nodes within a case struction in your while loop with a button control.

With that, you can re-initialise all of them with a single click. With the same method, you will be able to wire them with fixed values upon entering a vi.

Optional
Configuration file can also be created using labVIEW.
Value for each control/ indicator is stored in a file, which the values will be read back and write to each control/ indicator.

have fun
ian.f
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 3 of 7
(3,143 Views)