Model Plugin – Begin
- Updated2025-07-23
- 1 minute(s) read
Use the Begin entry point to perform required setup or initialization tasks, such as opening files or establishing database connections.
A process model calls Begin once in its controller thread and once in each test socket thread after calling the ModelPluginOptions and ModelPluginConfiguration callbacks. In contrast, a process model calls the Initialize entry point only in the controller thread and before calling the ModelPluginOptions and ModelPluginConfiguration callbacks.
Process models complete the call to the Begin from the controller thread before calling Begin from any socket thread.
The Begin entry point accepts the following parameters:
| Parameter Name | Data Type |
|---|---|
| ModelPlugin | NI_ ModelPlugin |
| ModelPluginConfiguration | NI_ModelPluginConfiguration |
| ModelThreadType | NI_ModelThreadType |
| ModelData | Container |
| StartDate | DateDetails |
| StartTime | TimeDetails |
| ProcessModelClientPath | Path |
| ParentThread | Reference |