11-16-2016 09:23 AM
I would like to have a master TestStand sequence that is able to select and insert a "sub-sequence" into it'sself.
For example, in the Setup section, the UUT is scanned and a part specific sequence then gets inserted into the Main section for execution.
I tried calling the sequence directly but there's no way to pass the test results of the sub-sequence steps back to the master caller.
11-16-2016 11:02 AM
A few questions:
Do you want to dynamic create this sequence. There is an example to do this in the Teststand examples folder TestStand API\Building a Sequence Using API
Does this sequence already exist and you just want to insert it into your sequence execution.
or do you just want to dynamical call a sequence so the sequencecall step is in your main sequence.
Not sure why you couldn't return the results back into the step.
Do you have a simple example of what you are trying the achieve
regards
Ray
11-16-2016 11:32 AM
I have preexisting sequences that I would like to insert into Main. Each part number that can be tested in the system has a unique sequence that needs to be loaded.
11-16-2016 12:44 PM - edited 11-16-2016 12:48 PM
Instead of inserting them into main, why not just call a different sequence for each part number? You can specify what sequence to call by expression in a sequence call step:
Depending on the value of "Locals.PartNumber", the sequence call step above would call a different sequence - for example "PartNumber123".
If you do this, you'll probably want to implement some checks to make sure the part number you read in setup actually has a corresponding sequence - otherwise you will get a runtime error.
Hope this helps,
Trent
11-16-2016 01:01 PM
I tried this but the custom parallel model I have to use does not know how to transfer the test results from the called sequence to the custom test report.
I believe I found some example sequences that do what I want. This was burried in some stuff written by the developer of the custom model.
11-17-2016 08:12 AM
Hey chiraldude,
Have you tried to solution from the forum below?
Programmatically Renaming a Sequence in a Sequence File -http://forums.ni.com/t5/NI-TestStand/Programmatically-Renaming-a-Sequence-in-a-Sequence-File/td-p/32...