LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there something to reset all indicators when the VI is open?

I would like that graphs and indicators will be resetted when the VI is open. Is it possible? A control to push at the end of the previous session could be good, too.
0 Kudos
Message 1 of 8
(3,660 Views)
Opena VI reference to the current VI and invoke "Reinitialize all to Defaults". Voila!

(see attached code image. Just put it inside an event or case, triggered by your reset button).
0 Kudos
Message 2 of 8
(3,660 Views)
In the VI Properties, execution options, there is a checkbox "Clear indicator when called". That clears graph when the VI is called or when a top level VI is run. If your subVI is set to open FP when called, that will do what you want. If you open the panel using VI Server, you may also use the VI method "Reinitialize All To Default".


LabVIEW, C'est LabVIEW

Message 3 of 8
(3,660 Views)
For resetting graphs and Charts, you should look at the example that ship with LV. Simply type "Clear graph and chart" in the find example feature. For the rest control and indicator, you can do as mention above.
------------------------------------------------------------------
When you feel sad, laugh
0 Kudos
Message 4 of 8
(3,660 Views)
Do u mean to look at NI Example Finder? I have got LabVIEW 7.0, I have tried the Search option, but I have not been able to find what you suggested. It says: "no examples match your searcg criteria"
0 Kudos
Message 5 of 8
(3,660 Views)
This doesn't work. The option you mentioned was not selected, but now it is. Indicators are not cleared when I open the VI. Maybe because I don't know what is when you say:

If your subVI is set to open FP when called

My main VI is set to open Front Panel when called. I don't know what about the subVI. But, the most of the indicators are in the main VI.

More over, I don't know what you mean with:

If you open the panel using VI Server
0 Kudos
Message 6 of 8
(3,660 Views)
Thank u for your attention. I am sorry, but I have not been able to do what you suggested. Your picture is nice, but it is impossible for me to reproduce it because it uses Functions I have never seen (I don't even know their names...).
Could you please be more precise?
I am a new user.
0 Kudos
Message 7 of 8
(3,660 Views)
What version of LabVIEW do you have?

These tools are found in the section "Application Control" in the functions palette. Also check the online help for more details.

Left to right:
"Current VI's path" provides the path to the current VI.
"Open VI reference" opens a reference to the VI.
"Invoke Node" acts on the VI, select "Reinitialize All to Defaults".
"Close Reference" closes the reference.

I have attached a simple example for demonstration (LabVIEW 7.0). If you have an earlier version, use the LabVIEW Player 7.0 to open (...or let me know and I convert it to an earlier version).
0 Kudos
Message 8 of 8
(3,660 Views)