Overriding PreUUT and PostUUT Batch Model Callbacks
- Updated2025-03-28
- 1 minute(s) read
Purpose
This example demonstrates how to override the PreUUT callback to customize the batch and test socket serial number entry and how to override the PostUUT callback to customize the batch and test socket status report.
Example File Location
<TestStand Public>\Examples\Modifying Process Models\Overriding Model Callbacks - Batch Model\Overriding PreUUT and PostUUT Callbacks.seq
Highlighted Features
Batch process model
Major API
None
Prerequisites
None
How to Use This Example
This example overrides the PreUUT and PostUUT callbacks, but the OverrideSerialNumForBatchModel1.seq example sequence file overrides the PreBatch and PostBatch callbacks.
The advantage of overriding the PreUUT and PostUUT callbacks, and not the PreBatch and PostBatch callbacks, is that TestStand executes the PreUUT and PostUUT callbacks in parallel for each test socket, and on some computers this might improve performance and allow for simpler code in the callbacks.
The disadvantages include the following:
- You can disable test sockets only in the PreBatch callback. You cannot disable test sockets in the PreUUT callback.
- Test sockets you have disabled, terminated, or aborted never call the PreUUT and PostUUT callbacks. If you want to record information for the test sockets, you must do so in the PreBatch and PostBatch callbacks.