In order to animate the property of an object, you must connect that property to the data source that is providing the data. For example, if you want a tank to fill based on the output of a PLC connected to the tank, you would connect the vertical fill property of the tank's cylinder with the database point that contains the real-time value of the correct PLC address.
The transformation of data between objects occurs through animationobjects. There are three types of animation objects:
Linear – Converts data from one range of values to another, thereby performing signal conditioning. For example, if a data source has EGU limits from 0 to 65535, and a tank's fill percentage has a range of 0 to 100, the Linear object transforms the data source range to the tank's fill percentage range. Refer to the Understanding Signal Conditioning section of the Building a SCADA System manual for more detail on how the Linear object works.
Lookup – Uses a table structure to map either a range of values or exact values from a data source to a single value of the connected object's property. For example, if a data source has multiple alarm values, the Lookup object maps each alarm value to a rectangle's color. You can also set up a Lookup object to divide a range of values into levels or rows, and map those levels to a rectangle's color. The Lookup object also has a Toggle property that can be used for blinking colors.
Format – Converts the source data into a string. When you set up a data source for a data link, for example, you actually create a Format object that transforms the data source into a string.
You will see examples of these objects in the scripting examples throughout this section. For more information on animation objects, including object-to-object connections, refer to the Creating Pictures manual. For a detailed explanation of all the animation properties and methods for each of the animation object types, refer to the Animation Properties and Methods section.
Visual Basic has many methods you can use to make connections to data sources. These various methods are detailed in the following sections.