NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

passing an object reference from a sequence to another

hello,

 

from the Test Stand Editor,

 

I would like passing object reference of MyClass type from the MainSequence to another sequence.

 

where MyClass is a type coming from a external dll.

 

More precisely:

 

- Start main sequence:

- step 1: create a step action (C# adapter) which is create an instance of a class (type MyClass) coming from an external dll (I know to do it)

- step 2: call secondary sequence with a parameter which is a reference to an object of MyClass type

 

is it possible ?

0 Kudos
Message 1 of 4
(3,064 Views)

Hi,

 

this link should help you.

 

I am assuming you know how to setup a Parameter in you Sequence.

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,062 Views)

Yes just add an Object Reference variable to the Parameters section of the variables of the sequence you want to pass the parameter to. Then when you specify a sequence call, pass the local variable in which you stored your class reference.

 

-Doug

0 Kudos
Message 3 of 4
(3,047 Views)

Thank you very much, it works

0 Kudos
Message 4 of 4
(3,043 Views)