Forcing I/O Variable Values (NI Scan Engine)
- 更新日2025-04-04
- 6分で読める
You can use an I/O variable probe to force I/O variable values. Forcing an I/O variable causes the input or output and all associated aliases of the variable to assume the forced value until you unforce the value. If an input from hardware returns an error, and the associated I/O variable is forced, System Manager does not display the error. However, if the error results in a fault, LabVIEW registers the fault. If an output returns an error, System Manager displays the error.
Enabling I/O Variable Forcing
Complete the following steps to enable and disable I/O variable forcing on a target with the NI Scan Engine installed.
- Click a scan-enabled target in the system tree to display a target probe in the Auto View. You also can right-click a target and select Probe to display a target probe in a separate window.
- The Scan Engine page of a real-time target probe displays the Forcing Enabled LED indicator, which indicates whether I/O variable forcing is enabled on the controller.
- Use the Enable Forcing button to enable forcing. Use the Disable Forcing button to disable forcing and unforce all forced I/O variable values. Use the Clear Forcing button to clear forcing on all I/O variables.
Forcing I/O Variable Values
Complete the following steps to force and unforce I/O variable values.
- Click an I/O variable in the system tree to display an I/O variable probe in the Auto View or right-click an I/O variable and select Probe to display an I/O variable probe in a separate window.
- In the New Value section of the I/O variable probe, enter or select the new value for the I/O variable.
- Click the Force button to force the I/O variable to the value you specified.
- Click the Unforce button to unforce the I/O variable value.
Batch Forcing I/O Variable Values
Complete the following steps to perform batch forcing on a set of I/O variables.
- Disable forcing on the target.
- Force each I/O variable to the desired value.
- Enable forcing on the target.