Inserting a second decision block, 5 inserting a second decision block – Nematron Pointe Controller User Manual

Page 49

Advertising
background image

Pointe Controller User Guide

Chapter 3: Quickstart Project

47

3.5

Inserting a Second Decision Block

So far, all we’ve done is check to see if InputSwitch1 is on. If it is on, we want to
flash the first two output LEDs out of phase. To do so, we turn the first output on
and the second off for a period of time, then turn the first output off and the
second on for a time period. Our flow chart will use the flag that we previously
defined, rightOn, to keep track of which state we are in.

1. Click the Decision Block tool on the toolbar, and then click on the Then

branch to the right of your “InSwitch1 = ON” decision block. A new
decision block will be inserted.

2. Double-click on the new block to open its associated Block Properties

window.

3. Define the block’s Expression as “rightOn = TRUE,” as described

previously. Remember that rightOn is a Memory tag rather than an Input
tag.

4. Close the Block Properties window.

Advertising