Type SevHistOptionsMask
Version 1.0
 Options attribute type in SevHist objects.

See also




SevHistOptionsMask elements   pwr_mSevHistOptionsMask
PosixTime Time storage format is Posix Time.
If this bit in not set, the storage format is Sql time.
The sql time is displayed by sql as a readable time, while the posix time is
displayed as the elapsed time since 1970-01-01 in seconds.
In Mysql the size for Posix time is 4 bytes and the size for sql time 8 bytes.
The resolution is 1 second. If higher resulution in needed, use the
HighTimeResoution bit.
HighTimeResolution HighTimeResolution increases the time resolution from seconds to nanoseconds.
An additional nono second variable is stored with the size 4 bytes.
ReadOptimized The ReadOptimized bit will store an additional id value for each value
which decreases the time to read data. The size of the id variable is
4 bytes, if the HighTimeResolution bit is set the size is 8 bytes.
UseDeadBand The deadband is a range around the last stored value, where no new values
will be stored, i.e a value has to differ more than the deadband/2 from
the last stored value to be stored.
Set the UseDeadBand bit to activate the deadband function. Note that the value
of the deadband also has to be set in the DeadBand Attribute of the SevHist object.

UseDeadBand will increase the storage size with 1 byte. The ReadOptimized bit
also has to be set.
DeadBandLinearRegr Deadband calculated with linear regression of last points.
DeadBandMeanValue Store a mean value calculated with linear regression.
Parameter Not yet implemented.
Event Event controlled storage. The attribute will only be stored
one time when the trigger is activated.
MeanValue1 Calculate mean value with interval 1.
MeanValue2 Calculate mean value with interval 2.
FloatIdentity Float identity.


Elements detail


PosixTime
Value 1
c-type pwr_mSevHistOptionsMask_PosixTime
 Time storage format is Posix Time.
 If this bit in not set, the storage format is Sql time.
 The sql time is displayed by sql as a readable time, while the posix time is
 displayed as the elapsed time since 1970-01-01 in seconds.
 In Mysql the size for Posix time is 4 bytes and the size for sql time 8 bytes.
 The resolution is 1 second. If higher resulution in needed, use the
 HighTimeResoution bit.

HighTimeResolution
Value 2
c-type pwr_mSevHistOptionsMask_HighTimeResolution
 HighTimeResolution increases the time resolution from seconds to nanoseconds.
 An additional nono second variable is stored with the size 4 bytes.

ReadOptimized
Value 4
c-type pwr_mSevHistOptionsMask_ReadOptimized
 The ReadOptimized bit will store an additional id value for each value
 which decreases the time to read data. The size of the id variable is
 4 bytes, if the HighTimeResolution bit is set the size is 8 bytes.

UseDeadBand
Value 8
c-type pwr_mSevHistOptionsMask_UseDeadBand
 The deadband is a range around the last stored value, where no new values
 will be stored, i.e a value has to differ more than the deadband/2 from
 the last stored value to be stored.
 Set the UseDeadBand bit to activate the deadband function. Note that the value
 of the deadband also has to be set in the DeadBand Attribute of the SevHist object.

 UseDeadBand will increase the storage size with 1 byte. The ReadOptimized bit
 also has to be set.

DeadBandLinearRegr
Value 64
c-type pwr_mSevHistOptionsMask_DeadBandLinearRegr
 Deadband calculated with linear regression of last points.

DeadBandMeanValue
Value 128
c-type pwr_mSevHistOptionsMask_DeadBandMeanValue
 Store a mean value calculated with linear regression.

Parameter
Value 16
c-type pwr_mSevHistOptionsMask_Parameter
 Not yet implemented.

Event
Value 32
c-type pwr_mSevHistOptionsMask_Event
 Event controlled storage. The attribute will only be stored
 one time when the trigger is activated.

MeanValue1
Value 256
c-type pwr_mSevHistOptionsMask_MeanValue1
 Calculate mean value with interval 1.

MeanValue2
Value 512
c-type pwr_mSevHistOptionsMask_MeanValue2
 Calculate mean value with interval 2.

FloatIdentity
Value 1024
c-type pwr_mSevHistOptionsMask_FloatIdentity
 Float identity.