NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically create sequenceCall in testStand

Solved!
Go to solution

hellon

how can i create a sequence call programmatically in new Step using TestStand API?

0 Kudos
Message 1 of 5
(1,312 Views)
Solution
Accepted by topic author hakimS

See Solved: TestStand API - Sequence Call

 

Basically, it is a Engine.NewStep method with StepTypes set to "SequenceCall".

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
Message 2 of 5
(1,289 Views)

thanks ,

it is helpful

please how can i make it in statement step in testStand?

0 Kudos
Message 3 of 5
(1,270 Views)

@hakimS wrote:

thanks ,

it is helpful

please how can i make it in statement step in testStand?


See Building a Sequence Using API - TestStand Expressions (XML)

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
Message 4 of 5
(1,245 Views)

I am using Python to translate code to a teststand 2017 sequence. I need to set  function parameters and don't know how.

This is what I do to create the step and set name and use current file property. It works so far, but when I open the generated sequence file there is a red exclamation mark stating that the arguments do not match the parameters of the sequence to be called.

 

If i use step.Module.UsePrototype = True then the exclamation mark is gone, but the Use prototype checkbox in the generated step is UNchecked.

 

This is an extract from my code. 

 

step = engine.NewStep("Sequence Adapter","SequenceCall")
step.Name = (step.StepType.Name) +" "+ str(index)
step.Module.UseCurFile = True
step.Module.SeqName = sub_seq.name

step.Module.UsePrototype = True

#ToDo: Set Parameters "Var1" to 10
MainSEQref.InsertStep(step,index, stepGroup["StepGroup_Main"])

 

Can anyone help please? I assume I have to do something with the step.Module.ActualArgs Property but I am stuck for two weeks at this problem now and I have tried almost everything.

0 Kudos
Message 5 of 5
(232 Views)