Discussion:
I have a LabVIEW user interface that presents a menu for selecting multiple sequences that are to be performed. How can I programmatically interface with TestStand using this menu?
(too old to reply)
RoyG
2008-08-11 16:40:16 UTC
Permalink
Message Edited by RoyG on 08-11-2008 11:31 AM
Ray Farmer
2008-08-11 18:10:17 UTC
Permalink
Hi,
What version of TestStand and LabVIEW are you using?
What do you what to run the sequence with
a) Interactive or normal
b) with or without process model entry point.
The place to look at is the code for the full development UI and see how that is doing it.
Regards
Ray Farmer
 
RoyG
2008-08-11 23:10:15 UTC
Permalink
Ray,
The
RoyG
2008-08-11 23:10:15 UTC
Permalink
Ray,
The full
RoyG
2008-08-11 23:10:16 UTC
Permalink
Ray,
The full deployment
RoyG
2008-08-11 23:10:16 UTC
Permalink
Ray,
    The full-featured UI example has one sequence with multiple steps.  What I would like to do is to interactively select multiple sequences from a LabView menu that are then executed together by TestStand as one sequence.   Can this be done using a loop that increments over each of the menu-selected sequences?  if so, do you have a code example?  If not, how can a sequence file be generated on the fly that incorporates the menu-selected sequences as sub-sequences?
 
Regards,
Roy
Ray Farmer
2008-08-12 06:10:09 UTC
Permalink
Hi Roy,
Just to clarify;
You have a selection of sequences, do these sequences live in the same Sequence File or are they seperate?You want to group all these selected sequences together into one sequence in a new sequence file, dynamically created, then run the newly created sequence.
If all the sequences live in the same sequencefile which is already loaded, then all you need to do is use your selection and pass this to the interactive execution. Have a look at 'Starting an Interactive Execution' in the Reference Help. But probably you what to use the UI Controls so the SequenceFileViewMgr is a good start.  This will allow you to setup an Argument List from the selected steps in the sequence view. But by the sounds of it your selection in not in the SequenceView control, is this correct?
If your sequences are in separate sequence files, then you need to load those sequencefiles, clone the relevant steps from the sequence files and place in a new Sequence (Sequence File) and execute, when you are finished release that newly created sequence/ sequence file. This you dont need to run as an Interactive Execution but your top level sequence must be called MainSequence in the new sequence file, if you what to run it with the process model.
Regards
Ray Farmer
RoyG
2008-08-12 15:10:21 UTC
Permalink
Ray,
We are converting a UI developed with labview 8.5 to use TestStand 4.1 controls and are trying to figure out which way is best to enable an operator to select tests.  Our software specification, which cannot be changed, requires that the operator use a list-menu, of say N items, to select from 1 to N tests which are to be performed.  Once the tests have been performed,  the list-menu will be used again to select another set of tests which are to be performed, and so on.  So our selection requirement does not allow use to use SequenceViewControl.  I will look into cloning the relevant Sequences and executing as you have described. 
Thanks.  This is very helpful.
Regards,
Roy
RoyG
2008-08-11 23:10:15 UTC
Permalink
Hi,
What version of TestStand and LabVIEW are you using?
TestStand 4.1 and LabVIEW 8.5
What do you what to run the sequence with
a) Interactive or normal
Menu selection of sequences is interactive, running of selected sequences thereafter is normal.
b) with or without process model entry point.
With and without process model entry point.
The place to look at is the code for the full development UI and see how that is doing it.
I will look at the full development UI.
Regards,
    RoyG
RoyG
2008-08-12 22:40:23 UTC
Permalink
Ray,
Good news...for me!  I found a working demo that creates and executes a sequence file on the fly.  See the following folder
                 C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 4.1\Examples\SequenceBuilderTool
Regards,
Roy
Ray Farmer
2008-08-13 05:40:28 UTC
Permalink
That's great news :smileyhappy:
Regards
Ray

Loading...