NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing an ActiveX reference as a parameter to a subsequence

I'm trying to pass a reference to my local variables in a top-level sequence
to a subsequence. I defined a parameter in the subsequence as type ActiveX
reference. Then I tried passing "ThisContext.Locals" (and other variations)
to the subsequence but it doesn't work. The subsequence creates some new
variables (these show up under the parameter in debug mode) but when the
code returns to the calling sequence, no variables have been added.

Thanks, Mark
0 Kudos
Message 1 of 2
(4,102 Views)
Mark,

If you're trying to pass the Locals to another TestStand sequence, try
specifying the Parameter as a Container type. Then simply specify "Locals"
for that parameter in the sequence call in your top level sequence.

If you're trying to pass the Locals to an ActiveX control, you will need to
specify it as an ActiveX reference then pass the sequence context. The
ActiveX DLL will then have to derive a reference to the Locals collection
from the Sequence Context reference.

Bob Rafuse
ETEC Inc.
0 Kudos
Message 2 of 2
(4,102 Views)