LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Questions about some features of Labview

1, Is it possible to let Labview continue to run some of the process(just for resetting) even after the Stop button on the left corner was pressed.
2, How to make this feature in Labview that once you click some button, another window of subvi will actually pop out, and you just operate in the window of subvi, and after it's finished, the window will close itself?
Thank you.
 
0 Kudos
Message 1 of 7
(3,451 Views)

I think I already know the answer to the second one. Just right click the subvi in the block diagram and choose subvi node setup.

But I still need help for the first question. Thank you.

0 Kudos
Message 2 of 7
(3,439 Views)
These things have solutions....
  1. Hide the toolbar when running (VI properties...window appearance). Now use a filtering event for "panel close?" which would initiate your sutdown code.
  2. Place your subVI e.g. inside an event structure and set the subVI call setup to "show panel when called+close afterwards".

 

0 Kudos
Message 3 of 7
(3,434 Views)
This may answer you second question.. as I am confused what you are asking in the first.


The array contains the names of VI's which I would like to open, I can select which I would like to open by indexing that array.


Message Edited by MJBrehm on 10-05-2006 03:33 PM

0 Kudos
Message 4 of 7
(3,421 Views)
Is the Stop button that you're talking about the Abort button on the toolbar?  If so, you should not be using this for normal operation.  Instead your code should be written such that you have a stop button on the front panel.  Then you can execute the code when that button is pressed.  Since I don't know anything about your code I can't tell you what the best way to implement this would be.
0 Kudos
Message 5 of 7
(3,415 Views)

Thank you for your advice. That helps a lot.

For the stop button I mentioned, I do mean the abort button. I am just asking this general question, since I am writing a program for other people. I put a stop button on the front panel. Once clicked, labview will terminate some instrument it is communicating with, and then stop. However, just to prevent any misoperation that some people may simply press the abort button to stop labview, but in that case, the instrument will still be left on which may be dangerous. So it seems that there is no way to prevent this situation, right?

Thank you again.

 

0 Kudos
Message 6 of 7
(3,409 Views)
Read the first answer you got. Christian explains how to make the whole tool bar invisible but you can go to the same screen and just hide the abort button.
0 Kudos
Message 7 of 7
(3,397 Views)