Difference between revisions of "Direct models"
From PhotoVoltaic Logger new generation
m |
m (→Switcher) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{TOCright}} | |
− | |||
Direct models implement the '''direct''' data access. They don't accept child channels and handles data storing or readout by themselves. | Direct models implement the '''direct''' data access. They don't accept child channels and handles data storing or readout by themselves. | ||
Line 31: | Line 30: | ||
=== Switcher === | === Switcher === | ||
− | A switcher model will store actual reading '''only''', if the actual value is '''different''' from the last stored reading. | + | A switcher model will store actual reading '''only''', if the actual value is '''different''' from the last stored reading.<br />It works for numeric and non-numeric readings. |
Switching sensors are for example an inverter state or valve state. | Switching sensors are for example an inverter state or valve state. |
Latest revision as of 07:28, 10 September 2014
Contents
Direct models implement the direct data access. They don't accept child channels and handles data storing or readout by themselves.
Counter
A counter stores impulses from sensors, for example S0 impulses from watt meters.
The real data will be calculated during readout by the time difference between the readings and the defined resolution.
It can handle both types of stored data:
- Store realtime data (every tick) as value 1
- Store accumulated tick counts, e.g. accumulated for a minute
Meter
A meter channel stores always increasing measuring data, so every reading must be greater or equal as the last reading.
Meter channels can have an auto adjust flag set.
This is used for sensor equipments, which resets their internal counter for example at power loss.
If a meter channel is flagged as auto adjust, the following will happen
- If the actual reading is lower than last reading, the offset value will set to the last reading
- The actual reading will be stored as offset + value as for any other channel with offset.
Sensor
A sensor is the most generic model for universal use, it stores any value as is.
Switcher
A switcher model will store actual reading only, if the actual value is different from the last stored reading.
It works for numeric and non-numeric readings.
Switching sensors are for example an inverter state or valve state.
The predefined weather condition channels (storing "sunny", "cloudy" etc.) are also based on this model.