ControlDataGetOrCreateSensor(String, SensorLocationType, IQuantity) Method

Get or create sensor.

Sensors defined in SensorDescriptions will automatically be created. This is relevant for sensors that is not connected to anything by default, but needs user interaction to get connected.

Definition

Namespace: DHI.Mike1D.ControlModule
Assembly: DHI.Mike1D.ControlModule (in DHI.Mike1D.ControlModule.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public ISensor GetOrCreateSensor(
	string sensorId,
	SensorLocationType locationType = SensorLocationType.None,
	IQuantity quantity = null
)

Parameters

sensorId  String

[Missing <param name="sensorId"/> documentation for "M:DHI.Mike1D.ControlModule.ControlData.GetOrCreateSensor(System.String,DHI.Mike1D.ControlModule.SensorLocationType,DHI.Mike1D.Generic.IQuantity)"]

locationType  SensorLocationType  (Optional)

[Missing <param name="locationType"/> documentation for "M:DHI.Mike1D.ControlModule.ControlData.GetOrCreateSensor(System.String,DHI.Mike1D.ControlModule.SensorLocationType,DHI.Mike1D.Generic.IQuantity)"]

quantity  IQuantity  (Optional)

[Missing <param name="quantity"/> documentation for "M:DHI.Mike1D.ControlModule.ControlData.GetOrCreateSensor(System.String,DHI.Mike1D.ControlModule.SensorLocationType,DHI.Mike1D.Generic.IQuantity)"]

Return Value

ISensor

[Missing <returns> documentation for "M:DHI.Mike1D.ControlModule.ControlData.GetOrCreateSensor(System.String,DHI.Mike1D.ControlModule.SensorLocationType,DHI.Mike1D.Generic.IQuantity)"]

See Also