NI_ModelPluginRuntimeVariables
- Updated2025-07-21
- 2 minute(s) read
NI_ModelPluginRuntimeVariables
The NI_ModelPluginRuntimeVariables data type is the data type of the Base.RuntimeVariables property of the NI_ModelPlugin data type. The NI_ModelPluginRuntimeVariables data type contains variables the process model updates to control and indicate the execution state of the instance of the plug-in. Typically, only the process model changes these variables.
The NI_ModelPluginRuntimeVariables data type includes the following subproperties. The data type appears in parentheses.
- ProcessorIndex (Number)—Indicates the zero-based offset of the instance of the plug-in within the Plugins array property of the NI_ModelPluginConfiguration data type in which the instance resides.
- Thread (Reference)—When the NewThread and UseDefaultNewThreadImplementation properties of the NI_ModelPlugin data type are True and the process model calls the Model Plugin – Batch Done entry point in a new thread, the process model stores a reference to the new thread in this property.
- PluginEntryPoints (Number)—A bit mask that indicates the entry points the plug-in contains. The bit values correspond to the subproperties of the FileGlobals.PluginEntryPoints variable in ModelSupport.seq .
- InitializationState (Number)—A bit mask the process model uses to indicate whether certain run-time operations have occurred. The values correspond to the subproperties of the FileGlobals.InitializationStates variable in ModelSupport.seq . If you insert plug-in elements into the <NI_ModelPluginConfiguration>.Plugins array in the ModelPluginConfiguration callback, ensure this property is set to zero for each plug-in you insert.
- AsyncControllerAndSocketSynchronizationManager (Reference)—When the NewThread , UseDefaultNewThreadImplementation , and RequiresBatchControllerAndSocketSynchronization properties of the NI_ModelPlugin data type are True , the process model stores a reference to an instance of the ControllerAndSocketSynchronizationManager class in this property. You can use this instance of the ControllerAndSocketSynchronizationManager class to enforce controller and socket synchronization between the new threads the process models create for the Batch Done and Model Plugin – UUT Done entry points of this plug-in instance.
- SourceConfigurationFile (String)—The filename of the configuration file from which this plug-in instance was read at run time.
- PerSocket (Array of NI_ModelPluginPerSocketRuntimeVariables)—At run time, the process model resizes the PerSocket array to include one element for each test socket in the system so that each socket has a separate instance of the NI_ModelPluginPerSocketRuntimeVariables data type.