TCumulative, palette SmartSCADA System, unit Cumulative.pas

 

       Component that integrates value of analog signal thru time. It can be used for example, to count overall flow. It can be used only for approximate information but not for custody transfer.

PROPERTIES

Source: TSignal

Pointer to analog signal to be integrated.

 

TimeInterval: integer

Value that defines time interval that integration should be done. Value is setup in seconds.

For example if max flow is 100 l/h . than time interval should be setup to 3600 (1h=3600s).

 

SaveInterval: integer

Time interval for saving value to INI file.

 

IniFile: TIniComponent

Pointer to INI file component.

 

IniFileStatus: TIniFileStatus

Defines behavior of  TIniComponent (explained earlier).

METHODS

procedure Run; virtual;

Method that count value and total. Never is called directly.

 

TSignalGenerator, palette SmartSCADA System, unit SignalGenerator.pas

 

                      Component that generates signal with predefined shape. There are few signal shapes available. Signal generator should be linked to one existing signal in system. It has application testing purpose..

PROPERTIES

 

Coeficient: Integer

Coeficient that is base for frequency.

 

Enabled: Boolean

Enables or disables component

 

GeneratorStatus: TGeneratorStaus

Property that defines signal shape. Available values are:

 

Value

Description

gsNone

Component is idle

gsPulse

Pulse shape

gsRandom

Random values

gsTriangle

Triangle function

gsSawLeft

Sow left function

gsSawRight

Sow right function

gsSinus

Sinus function

gsGausianRandom

Random Gauss values

 

 

Interval: Integer

Value in ms to generate new signal value.

 

MinValue: Integer

Minimal allowed value of generated signal

 

MaxValue: Integer

Maximal allowed value of generated signal

 

Signal: TSignal

Pointer to signal that has to be simulated. Signal generator can change values TFloatSignal, TIntegerSignal and TBooleanSignal types.