|Download Help (Windows Only)|
The software that runs on RT targets consists of a top-level VI that initializes the application, executes several processes in parallel, and handles closing the software and rebooting the target. When you extend the software, your unique programming goals might require you to modify the top-level VI in the SDK device reference code.
Create the following block diagram within the Main VI to initialize and run NI-developed and user-developed processes. SubVIs with blue banners are NI-developed, whereas subVIs with red banners represent code you might develop.
Customize the gray sections for your unique programming goals.
Prepare Qbus to handle messages for each process that runs in the top-level VI. This subVI sets up the Qbus message bus that implements communication between processes, sets the NI-developed processes in the Dataflow Script, and sets other global data structures that processes read and write operations.
|To perform any of the following tasks, insert your custom code here:
|Call custom process VIs as subVIs that run in parallel with the NI-developed processes. Each process must receive a reference to Qbus. To remove a process, delete it from this Case structure and delete its Create Listener VI within the Initialize VI.|
|To perform any clean-up or other shutdown-related tasks that you cannot perform within a process, add your custom code before the NI-developed Shutdown VI.|
|Use the Shutdown VI to handle manual and programmatic requests to shut down the controller. This code destroys the Qbus instance and, optionally, restarts the controller.