NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Renaming a Sequence in a Sequence File

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.  

0 Kudos
Message 1 of 6
(3,638 Views)

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

0 Kudos
Message 2 of 6
(3,619 Views)

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.

0 Kudos
Message 3 of 6
(3,613 Views)

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:

Capture.PNG

 

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

 

https://www.linkedin.com/in/trentweaver
Message 4 of 6
(3,601 Views)

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. 

0 Kudos
Message 5 of 6
(3,593 Views)

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...

JY
Application Engineer, RF and Communications
National Instruments
0 Kudos
Message 6 of 6
(3,577 Views)