Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 7 Next »

Exercise: Checking Trends History with Trend Object

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 Switch/Lamp on the Hotbar. Once the Switch/Lamp is created, drag the ON tag 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. Create the Trend by going to Insert > Trend or by simply clicking Trend on the Hotbar. In the Basic Properties of the Trend, set the Max Value to 20.

  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.
  • No labels