Forcing VIs

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

Owning Palette: NI Scan Engine VIs

Requires: Base Development System (Real-Time, Windows). This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Forcing VIs to force and unforce I/O variables programmatically.

The VIs on this palette can return general LabVIEW error codes.

Example

Palette ObjectDescription
Clear Variable ForcingUnforces all currently forced I/O variables and I/O aliases on the target.
Disable Variable ForcingDisables forcing for I/O variables and I/O aliases on the target. Unless you clear forcing, the previous forced values return when you re-enable forcing.
Enable Variable ForcingEnables forcing for I/O variables and I/O aliases on the target.
Force VariableForces an I/O variable or I/O alias to assume forced value until you disable forcing, reboot the target, or force the variable to assume a new forced value.
Unforce VariableDiscontinues forcing on an I/O variable or I/O alias and returns control of the I/O value to the NI Scan Engine.

Example

Refer to the Programmatic Forcing.lvproj in the labview\examples\Scan Engine directory for an example of using the Forcing VIs.

WAS THIS ARTICLE HELPFUL?

Not Helpful