NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass a Sequence as Parameter

I have a SequenceA and a SequenceB and also some SubSequenzes like SetTime, SetGetTime, GetTime

 

Now I would like to pass a sequence as a parameter such as SetTime

 

Example:

SequenceB.Parameters.TimeSesequence (TimeSeuqenz is the method call for SetTime, GetTime, SetGetTime)

 

Ist this possible?

0 Kudos
Message 1 of 6
(2,741 Views)

Is specifying a sequence by expression is what you need or passing a reference to the sequence?

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 2 of 6
(2,712 Views)

The second one.

 

Thanks james, but how can I pass sequences if they using parameters?

0 Kudos
Message 4 of 6
(2,682 Views)

Try this

Locals.Sequence = RunState.SequenceFile.GetSequenceByName("SeqName")

Locals.Sequence.AsSequence.Parameters.MyParameter = 666

 

Locals.Sequence - your local reference to the sequence

MyParameter - sequence parameter name (number in this case)

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 5 of 6
(2,665 Views)

To pass parameters, go to the sequence call step's module pane and click on the Load Prototype button (curved blue arrow icon button on the far right).  Select an example of the kind of sequence you want to call and the parameters will appear.

Message 6 of 6
(2,652 Views)