NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling subsequences from within a file w LV 7.1?

I have a sequence I'll call Main Menu.seq (TS3.1).  Within Main Menu I have sub sequences Menu 1, Menu 2 ...  Using LabView 7.1 can I call anyone of these sub sequences ??  I've used LV before with the SYSEXEC.vi to call a seq but not only did I have to create Main Menu.seq but an invdividual Menu1.seq, Menu2.seq.  My goal is to write a seq ( Main Menu) that runs top to bottom with a click of a button either in LV or some other method.  I just call Main Menu seq and it runs Setup, Menu1, Menu2 ..Cleanup.  I also want to allow the user to be able ( through a button selection ) be able to run an individual sub seq w/o running the others ( expect I DO want to run Setup and Cleanup in TS if an individual sub seq is selected)..
0 Kudos
Message 1 of 2
(2,713 Views)

Hi Clint Eastwood,

There are several options that you have for calling sequences and sub-sequences from LabVIEW. 

Option 1: Use the built-in operator interfaces (graphical user interfaces used for executing sequences) that ship with TestStand. In the folder C:\Program Files\National Instruments\TestStand 3.1\OperatorInterfaces\NI, you will find full-featured and simple versions of operator interfaces.  In all the operator interfaces, you can select to run either the main sequence or sub-sequences.  You also have other features within these operator interfaces such as starting multiple concurrent executions, setting breakpoints, and single-stepping. Here is a link to a relevant thread and also a Simple LabVIEW Operator Interface without Menus program

Option 2: Attached code is a VERY simplified hard-coded way of running a sequence. It involves using the Application Manager and SequenceFileView Manager.  Basically the program opens a sequence file, chooses a sequence (GetSequence -- Index is used to differentiate sequences) and then runs the sequence.

I would recommend using the operator interfaces since it provides you will maximum functionality. 

Hope this helps!

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 2 of 2
(2,695 Views)