ProSoft Technology ProSoft i-View User Manual

Page 25

Advertising
background image

ProSoft i-View ♦ Mobile Process Monitoring and Control Application

Data Source Files

Version 2.0.2

User Manual

ProSoft Technology, Inc.

Page 25 of 106

September 29, 2011

3.1.5 Attribute Scope and Type

Attributes by Scope

Most attributes apply to a single tag. They are referred to as tag attributes. Others have
a global scope within a source file, and we refer to them as global attributes. In the
following sections, all attributes are discussed individually.

Attributes by Type

Attributes can hold a numeric value, a text , a special text or list of values depending
on their meaning or purpose.

 Numeric values are expressed as decimal numbers with optional decimal point and

decimal digits if applicable to the attribute.
Several special values are provided for convenience.

true : equals 1.0

false : equals 0.0

-inf : represents a very large negative number

+inf : represents a very large positive number

Numeric values are expressed directly after the equal sign without quotation marks,
including the convenience values. Examples:

write_access := 3 ;

word_swap := true ;

 Text usually represent text labels or fields in the application interface. They are only

required to be enclosed in quotation marks if they contain spaces or the semicolon
character. However, to maintain readability, it is advisable to always use quotation
marks.

label := "Main Run/Stop Switch" ;

suffix := " %" ;

 Attributes requiring a special text only accept specific, pre-defined text strings. Valid

texts vary depending on the particular attribute.

style := "bezel" ;

format := "4.2" ;


 Value Lists are used in cases where a single numeric value is not enough to provide

the information required by the attribute. The general format is a list of numbers
separated by colons and enclosed between ‘{‘ and ‘}’ characters.

scale := { 0, 360, 0, 100 } ;

bounds := { 0, 100 } ;

color_bounds := { -inf, 50 } ;

3.1.6 Tag Attributes

A tag attribute is applied to a tag at the same row and exclusively affects that tag. All
attributes are optional, and the specified attributes can be in any order.

Advertising