Handling a Latched Stop Boolean Control in an Event Structure

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