|LabVIEW 2015 Real-Time Module Help|
|LabVIEW 2016 Real-Time Module Help|
|LabVIEW 2017 Real-Time Module Help|
|LabVIEW 2018 Real-Time Module Help|
|LabVIEW 2019 Real-Time Module Help|
Deploying refers to downloading VIs and dependent files to an RT target. When you run a VI under a target, LabVIEW deploys the VI, all items required by the VI, and the target settings to the RT target.
You can add VIs and dependent files under an RT target in the Project Explorer window. Right-click an item under an RT target in the Project Explorer window and select Deploy from the shortcut menu to deploy the item and any support files for the item to the target.
The following table describes what items download to disk and what items download to memory on an RT target.
|Properties, settings, and built applications||Disk|
|VIs, libraries, and shared libraries||Memory|
If you deploy a VI that uses a LabVIEW class or calls a member VI, only the VIs and classes referenced in the application deploy to the target. If the deployed VIs reference any dynamic dispatch member VIs, all the VIs that override the dynamic dispatch member VI in descendant classes also deploy.
By default, when you run a VI LabVIEW automatically deploys all shared variables that the VI references, including I/O variables. However, in some cases it is useful to disable automatic variable deployment. The following table provides examples of when to enable and disable automatic variable deployment.
|Automatic Variable Deployment||Use Case||Benefit|
|Enabled||Developing a VI.||Allows you to run a VI simply by pressing the Run button, without separately deploying or redeploying variables that the VI references.|
|Disabled||Running a host VI that references a variable hosted on an RT target running a startup VI.||Allows you to run the host VI without encountering a deployment conflict.|
You can disable automatic variable deployment on the host computer or on an RT target by right-clicking the host computer or RT target in the Project Explorer window and selecting Disable Autodeploy Variables from the shortcut menu.
LabVIEW stores the compiled code for deployed VIs in the compiled object cache. If you edit and redeploy a VI, LabVIEW updates the compiled object cache.
|Note If you delete a large number of VIs that you previously deployed to an RT target, you can clear the compiled object cache to reclaim disk space on the RT target. However, LabVIEW then must recompile any VIs that you did not delete, which increases the amount of time LabVIEW requires for the next deployment. Consider this performance tradeoff before clearing the object cache.|
You can connect to an RT target and access the front panels of VIs in memory on the target.
Connecting—Right-click an RT target in the Project Explorer window and select Connect from the shortcut menu to open a front panel connection with the target. LabVIEW opens the front panels of VIs, indicating that the VIs are in memory on the RT target. Closing the front panel removes the VIs from memory on the target.
Disconnecting—Right-click an RT target in the Project Explorer window and select Disconnect from the shortcut menu to disconnect the front panel connection with the target and leave VIs running or in memory on the target.
Deploying configuration settings to a CompactRIO target with a connected I/O chassis involves three distinct domains:
You can lose synchronization among the project, target, and chassis configurations when you add a module, remove a module, or change the module in a chassis slot.
If you encounter deployment difficulties while using features that depend on the NI Scan Engine, you can attempt the following troubleshooting steps:
|Note When you connect to a target and LabVIEW detects deployed items that are missing from the current project, LabVIEW reports a conflict in the Conflict Resolution dialog box and offers an option to automatically undeploy those items from the target. You also can use the Project & System Comparison dialog box to view and resolve differences between the project and deployed target settings.|