This section describes the steps for creating any kind of G2-meter. Types of G2-Meters lists all G2-meters and describes what each type does.
Before you can create a G2-meter, you must create a user-defined class called a G2-meter class. Every G2-meter is an instance of such a class.
To create a G2-meter class:
KB Workspace > New Definition > class definition > class definition
quantitative-variable and g2-meter-data-service.
g2-meter-data-service is a mixin class that sets the data server to g2-meter, and gives the class an additional attribute called g2-meter-name. For information about mixin classes, see Using Mixin Classes.
You can customize and subclass a G2-meter class in any way, as with any user-defined class. You can define as many customized G2-meter classes as you need. Such customization does not affect the essential operation of the class, so this chapter refers only to G2-classes in general.
To create a G2-meter:
g2-meter-name attribute of the meter to specify the type of meter.
Names attribute to specify any available name.
Validity-interval attribute to be 0 seconds.
Validity-interval cannot be supplied, because data derived by monitoring G2's performance has no intrinsic validity interval. Hence the g2-meter data server cannot supply explicit expiration times.
Default-update-interval to be 1 second.
History-keeping-spec to keep history.
G2-meter-data-service-on? is enabled, the G2-meter begins functioning and displaying data as soon as you have completed its definition.