| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (5 out of 9)

Specifying the Meter Lag Time

You can change the degree to which all G2 meters smooth data by changing the Meter-lag-time attribute of the Timing Parameters system table. You can change this attribute at any time; the change takes effect immediately.

G2-meters monitor events in time. G2-meters can compute values for the most recent clock-tick, or they can compute values based on a smoothed result of recent clock-ticks. Such values are called lagged values, because they do not vary as drastically as the instantaneous events they measure. Rather, they represent a first-order delayed reaction to the event. The time interval over which a G2-meter smooths values is called the meter lag time.

To clarify this, it may be helpful to think of meter lag time as it exists on the dashboard of a car. For example, the fuel gauge in a car has a large meter lag time, because you don't want the needle on the fuel gauge to swing wildly as the gasoline sloshes in your fuel tank. Conversely, the speedometer has a small meter lag time, because you want it to respond immediately as the car goes faster and slower.

G2 computes lagged values as follows:

where:

= min (1.0, clock tick length / meter lag time)
Is an Euler approximation of first-order delay. Note that if the meter lag time is zero or is less than the latest clock tick length, then = 1.0, and the new lagged value equals the current value, with no lag.

The Meter-lag-time attribute of the Timing Parameters system table holds a value of 0 seconds or any longer time interval. If it holds 0 seconds, G2-meters reflect only the activity in the most recently completed clock tick. As its value increases, the values of G2-meters change more smoothly over time.

To set the meter lag time:

The change takes effect immediately. For more information, see Timing Parameters.

Some G2-meters keep absolute counts of events, so they do not provide lagged values. This is noted in the descriptions of particular G2-meters later in this chapter.

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (5 out of 9)

Copyright © 1997 Gensym Corporation, Inc.