Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Upto 2011_01 it is necessary that all data to be displayed in the ScadaDisplay is beforehand available as time series. This includes simple sums and differences between other time series. From 2011_02 onwards, it is possible to include in the ScadaDisplay configuration one or more transformations, that will make it easier to use derived time series. The derived timeseries will be calculated on-the-fly. The transformations are processed in the order they appear in the configuration.

NB. For 2011_02 only the UserSimpleFunction is supported and tested as a transformation that can be used.

Sample configuration for transformations within the ScadaDisplay

NB. It is required that the timeSeriesType of output variables are set to temporary.
NB. For 2011_02 only the UserSimpleFunction is supported and tested as a transformation that can be used This sample will allow the variable with variableId Observation_minus_correction to be displayed on a scadaPanel. This variable refers to a temporary timeseries that will be updated on-the-fly and is filled by the difference between the two other variables Observation and Correction.

Code Block
xml
xml
	<variable>
		<variableId>Observation</variableId>
		<timeSeriesSet>
			<moduleInstanceId>Afgeleide_Twentekanalen</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>H.meting</parameterId>
			<locationSetId>Hydro_LMW_TK_H</locationSetId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="hour"/>
			<relativeViewPeriod unit="hour" start="-1" end="0"/>
			<readWriteMode>read only</readWriteMode>
		</timeSeriesSet>
	</variable>
	<variable>
		<variableId>Correction</variableId>
		<timeSeriesSet>
			<moduleInstanceId>Afgeleide_Twentekanalen</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>H.meting</parameterId>
			<locationSetId>Hydro_LMW_TK_H</locationSetId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="hour"/>
			<relativeViewPeriod unit="hour" start="-1" end="0"/>
			<readWriteMode>read only</readWriteMode>
		</timeSeriesSet>
	</variable>
	<variable>
		<variableId>Observation_minus_correction</variableId>
		<timeSeriesSet>
			<moduleInstanceId>Afgeleide_Twentekanalen</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>H.meting</parameterId>
			<locationSetId>Hydro_LMW_TK_H</locationSetId>
			<timeSeriesType>temporary</timeSeriesType>
			<timeStep unit="hour"/>
			<relativeViewPeriod unit="hour" start="-1" end="0"/>
			<readWriteMode>add originals</readWriteMode>
			<synchLevel>9</synchLevel>
		</timeSeriesSet>
	</variable>
	<transformation id="TransformationObservationMinusCorrection">
		<user>
			<simple>
				<expression>Observation - Correction</expression>
				<outputVariable>
					<variableId>Observation_minus_correction</variableId>
				</outputVariable>
			</simple>
		</user>
	</transformation>
...

...