NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I pass parameters between Main Sequence and Callback sequences

I am using the process setup callback to obtain the hw configuration parameters (i.e. addresses, initial values, etc.). I then use some of this information within the main sequence. However I am having a difficult time passing the values acquired by the process setup sequence to the main sequence. When I call a sub-sequence I am able to pass the variables as parameters within that sub-sequence, but this option does not seem to be available when performing a callback sequence. Anyone have some suggestions on how to accomplish this task?
I have thought about using Station Globals, but the program I am developing is using a parallel process architecture and I am concerned about race conditions that are inherent with global variables.
0 Kudos
Message 1 of 4
(3,751 Views)
Did you try using the "Sequence File Globals"?  I would use this first before trying the "station Globals".
0 Kudos
Message 2 of 4
(3,745 Views)

You could also use the Synchronization step types.  If you use a Queue step you could name the Queue based on the test socket index.

Or, if you use the "sequence fileglobls" create arrays for your variables and index them based on the testsocket index to prevent sharing variables between the testsocket executions.

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

Hi,

Here is one way by using the FileGlobals.

Its a TS3.5 example.

Regards

Ray Farmer

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