LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

closing subvi windows

Hi,

Please excuse my ignorance, I am trying to control an instrument in labview,
and am having some problems in creating it.
First, a question. I have the main window in a while loop, so that I can
set parameters, and when the button is pushed, it sends all the parameters
on for processing, to control the machine. My question is, After I hit continue,
it sends the info on, the machine runs, gets the data, displays it as graphs,
and then I save it to a spreadsheet, is my main window reusable? i.e. can
I just change the parameters, hit contimue, and go again?

Second, is a problem. After my program runs, there is a page with graphs
that come up. Also, I will have to save the data to a spreadsheet, and calibrate
the instrument. wehn e
ach of these things are done, a subvi is working, and,
a front panel other than my main is up. Now, the calibration, for example
will be run once to get a tare value, and then the instrumant is ran all
day. so I have a pnel that comes up, tells me some data, and allows me to
press abutton to tare a value. However, after I am done calibrating, I do
not want that window to remain. I want to hit a boolean, and make the calibration
window disappear; and I want the graph window that comes up after each run
to do the same. I just don't know how to do this.
Any help/advice on these things would be most appreciated. Thanks very much.

JMH
0 Kudos
Message 1 of 2
(2,501 Views)
JMH wrote:

> Hi,
>
> Please excuse my ignorance, I am trying to control an instrument in labview,
> and am having some problems in creating it.
> First, a question. I have the main window in a while loop, so that I can
> set parameters, and when the button is pushed, it sends all the parameters
> on for processing, to control the machine. My question is, After I hit continue,
> it sends the info on, the machine runs, gets the data, displays it as graphs,
> and then I save it to a spreadsheet, is my main window reusable? i.e. can
> I just change the parameters, hit contimue, and go again?
>

This can be done but depends on how the VI is programmed. If it is in a while loop
then as long as the condition is satisfied for the loop it will continue to run.

>
> Second, is a problem. After my program runs, there is a page with graphs
> that come up. Also, I will have to save the data to a spreadsheet, and calibrate
> the instrument. wehn each of these things are done, a subvi is working, and,
> a front panel other than my main is up. Now, the calibration, for example
> will be run once to get a tare value, and then the instrumant is ran all
> day. so I have a pnel that comes up, tells me some data, and allows me to
> press abutton to tare a value. However, after I am done calibrating, I do
> not want that window to remain. I want to hit a boolean, and make the calibration
> window disappear; and I want the graph window that comes up after each run
> to do the same. I just don't know how to do this.
> Any help/advice on these things would be most appreciated. Thanks very much.
>
> JMH

Set the subVI to run when opened and close afterward (right click on the subVI in
the
main VI diagram and select SubVI setup options). This will cause the subVI to open
when the main VI calls it and after it completes it will close (IF it was originally
closed).
If you make some changes to the SubVI and then run the main VI WITHOUT closing the
subVI then the SubVI will not close.

Let me know if you need some more help.

Kevin Kent
0 Kudos
Message 2 of 2
(2,501 Views)