Use the Batch Done entry point to perform an action after each batch completes. For example, a plug-in might generate a batch report that summarizes the results of all test socket threads.

The Batch process model runs Batch Done and the UUT Done entry point in parallel. The Batch process model completes all calls to the UUT Start entry point before calling Batch Done. The Sequential and Parallel process models do not call Batch Done.

Set the <NI_ModelPlugin>.Base.NewThread and <NI_ModelPlugin>.Base.UseDefaultNewThreadImplementation properties to True for the process model to invoke Batch Done in a new thread. When the process model invokes Batch Done in a new thread, it passes all parameters by value except for ModelPlugin and ModelPluginConfiguration.

The Batch Done entry point accepts the following parameters, which are the same as the UUT Done entry point:

Parameter Name Data Type
CallingThread Reference
CallingThreadBlocker Reference
MainSequenceResult Reference
ModelPlugin NI_ ModelPlugin
ModelPluginConfiguration NI_ModelPluginConfiguration
ModelThreadType NI_ModelThreadType
ModelData Container
PriorIterationNewThread Reference
ProcessModelClientPath Path
StartDate DateDetails
StartTime TimeDetails
UUT UUT
UUTStatus String