Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Forcing VIs

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

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.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit