Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
top
top
Exercise: Checking Trends History with Trend Object

Table of Contents
minLevel1
maxLevel4
include
outlinefalse
indent
excludeExercise:
typelist
class
printabletrue

Trend Configuration

  1. Create an INT (INT16) tag named Count in the Tag Editor with an initial value of 0. Then create a bool tag named ON that defaults to off.

...

2.) Create a Lamp on the page. To create a Switch/Lamp, either go to Insert > Switch/Lamp or lick on the page and Switch/Lamp on the Hotbar. Once the Switch/Lamp is created, drag the ON tag onto to the Lamp. This will bind Value to the Tag ON.

...

  1. Click on the Lamp, and navigate to the Actions tab. Make an On Press Command on the Lamp that will Toggle the Tag Value. This will make it so that the Lamp is able to turn on and off.

...

  1. Click and hold the Count tag and drag it over the Trend. This will create a new Pen in the Basic Properties of the Trend. Go to Pen 1, and change the Pen Width to 5.

...

Trend Runtime

Back to top of Trend Exercise.