LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subVI design

I am currently designing a testing phase for a program to control a motor that I can runMotor.vi.  Given a set of parameters, I can run the motor and record its characteristics.  I've wrapped runMotor.vi into another new vi called testMotor.vi which calls runMotor.vi several times, but with different parameters defined within testMotor.vi.  Now I want to include this testMotor.vi into my main code as a diagnostic test prior to running the motor in a normal routine.  I want to control the subVIs from the main front panel so that when I press the stop button, the message is conveyed to the subVI.  This is a design question in terms of how to lay out the subVIs to provide for greatest control from the highest VI.  Should I create an occurence in main, testMotor.vi, and runMotor.vi so that upon clicking STOP in main.vi, there's an immediate response in the subsequent subVIs? I'm trying to avoid using global variables.

Any comments would be appreciated.
0 Kudos
Message 1 of 2
(2,460 Views)