Process models invoke model plug-in entry points at run time by calling the sequence with the corresponding name from ModelSupport.seq. For example, calling the Model Plugins – Pre UUT sequence in ModelSupport.seq invokes the Model Plugin – Pre UUT entry point in all enabled plug-in instances. Calling the Model Plugins – Begin sequence in ModelSupport.seq invokes the Model Plugin – Initialize entry point and the Model Plug – Begin entry point in all enabled plug-in instances. The ModelSupport.seq file loads the configured plug-in instances when the process model calls the Initialize Execution Entry Point sequence.

A custom process model must call all the applicable sequences in ModelSupport.seq in the following order:

  1. Initialize Execution Entry Point
  2. Model Plugins – Begin
  3. Model Plugins – Pre Batch (Batch controller thread only)
  4. Model Plugins – Batch Start (Batch controller thread only)
  5. Model Plugins – Pre UUT (Test socket thread only)
  6. Model Plugins – UUT Start (Test socket thread only)
  7. Model Plugins – OnTheFly Step Results (Call from the ProcessModelPostResults callback)
  8. Model Plugins – UUT Done (Test socket thread only)
  9. Model Plugins – Post UUT (Test socket thread only)
  10. Model Plugins – Batch Done (Batch controller thread only)
  11. Model Plugins – Post Batch (Batch controller thread only)
  12. Model Plugins – End
Note NI recommends that you create a custom process model by copying all the process model files from the <TestStand>\Components\Models\TestStandModels directory to <TestStand Public>\Components\Models and making changes to the copy.

A custom process model that creates a controller thread and multiple test socket threads like the Batch and Parallel process models must meet the following requirements:

All Models

  • The Begin entry point in the controller thread must complete before any Begin entry point in any test socket thread starts.
  • All End entry points in any test socket thread must complete before the End entry point in the controller thread starts.

Batch-Specific

  • All Begin entry points in all test socket threads must complete before the Pre Batch entry point starts.
  • The Pre Batch entry point must complete before any Pre UUT entry points start.
  • All restarted test socket threads must reach the same sync point as the remaining, active test socket threads before any Pre UUT entry points start.
  • All UUT Start entry points must complete before the Batch Done entry point starts.
  • The Batch Start entry point must complete before any UUT Done entry points start.
  • All Post UUT entry points must complete before the Post Batch entry point starts.