NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get a property value from my PreUUTLoop callback into my MainSequence?

I am trying to get a propety value (it's a VISA session number) from my PreUUTLoop callback into my MainSequence so that I can then contol my piece og GPIB equipment. How do I do that? Do I use a parameter or local variable, or something else? What mechanism do I use to pass it?
Thanks
0 Kudos
Message 1 of 3
(2,972 Views)
Hi,

You will need to write it to a variable in the FileGlobals, that way it will be accessible to both sequences.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 3
(2,964 Views)
As Ray Mentioned using Sequence File Globals would be the easiest method. But if you trying to stay away from Globals, you can directly pass the value from a local variable in the PreUUT callback sequence to a local variable in the MainSequence by using a Post Expression in one of your steps in the callback sequence.

RunState.SequenceFile.Data.Seq["MainSequence"].Locals.VAR = Locals.PreUUT_VAR

Hope this helps

SijinK
National Instruments
0 Kudos
Message 3 of 3
(2,959 Views)