Handling a Latched Stop Boolean Control in an Event Structure

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

You must configure an Event structure case to handle a latched stop Boolean control. When using events with latched Boolean controls, you must place the control inside the event case for the mechanical action of a latched Boolean control to work correctly.

The following example shows the recommended way to handle a latched stop Boolean control in an Event structure. In this example, if a user clicks the stop button, the application stops running, and the latched stop Boolean control resets to FALSE.

The Event structure is inside a While Loop and a Value Change event case is configured for the latched stop Boolean control. When you run this application, the executions completes in the following order:

  1. When the user clicks the stop button, the value of the latched stop Boolean control changes to TRUE, and the Event structure executes to handle the "stop": Value Change event case.
  2. The "stop": Value Change event case reads the front panel control, passes a TRUE value to the control terminal, and resets the stop button to FALSE.
  3. The While Loop conditional terminal reads the FALSE value and stops the loop.

Related Information

Using Events with Latched Boolean Controls

Ensure That Event Structures Handle Events whenever Events Occur

Configuring Events Handled by the Event Structure

Changing the Mechanical Action of a Boolean Object

WAS THIS ARTICLE HELPFUL?

Not Helpful