NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Create callback that will be called at start of Run Sequence Name

We have DLL function that should always be called before any execution starts on all our Stations:
a) The step has been added to Setup in all our MainSequence's in sequence files intended to be Client Sequences of the process Model.
b) The step has been added in "StationPreInteractive" in StationCallbacks.seq
c) However when debugging sequences the developer/debugger often selects to "Run Sequence Name" how do we make sure that the step is called at start of this type of execution?
0 Kudos
Message 1 of 3
(3,154 Views)
Hi,
i don't know why you want to call your DLL in the StationCallBack step,anyway if you want to execute some code before getting to your UI prefferly you should do it in the PreUUT Callback after you get the SoketID from the ProcessModel.
If my answer is not clear,let me know with more info.
0 Kudos
Message 2 of 3
(3,154 Views)
Our DLL creates and populates variables in RunState.Root.Locals. The variables contain product specific AND location specific information used by several 100 different sub-sequences.
The information has to be specific for each different process/thread (normally representing each UUT) so we can't use StationGlobals for the purpose.

The reason we use variables in RunState.Root.Locals instead of using parameters is that we want the values even when running debug on steps or sequences.

When running debug ("Interactive execution" or "Run Sequence Name") the PreUUT callback is never called.

I have a temporary fix where the DLL is called in the StationPreStep callback. I've added flags and pre-conditions so that the DLL is called only once when doing "Run Se
quence Name" (and not at all if running with the ProcessModel).
However the "StationPreStep" will be called for EVERY step in every sequence adding a step overhead of about 2ms (On a typical P3 1GHz) which adds about 10s to a typical test time.
0 Kudos
Message 3 of 3
(3,154 Views)