C# Mine
ContentsIndexHome
PreviousUpNext
ThreePhasePowerMeterBase.SensorEdit Method

Allows for the update of the specific type of sensor.

Syntax
C#
public static void SensorEdit(ISensor sens, double? heartBeat, double? awareStateHeartBeat, int? V123Hyst, int? I1Hyst, int? I2Hyst, int? I3Hyst, int? V123ThreshMin, int? V123ThreshMax, int? I1ThreshMin, int? I1ThreshMax, int? I2ThreshMin, int? I2ThreshMax, int? I3ThreshMin, int? I3ThreshMax, double? MeasurementInterval, Boolean? accumulate, int? failedTransmissionsBeforeLinkMode);
Parameters 
Description 
ISensor sens 
sens the Sensor object to be updated  
double? heartBeat 
How often the sensor communicates with the gateway if no activity recorded. 
double? awareStateHeartBeat 
How often the sensor communicates with the gateway while in Aware State. 
int? V123Hyst 
When going from aware to non aware regions the sensor must go into the the non aware region by Threshmin + Hysteresiss or Threshmax - Hysteresis in order to become non aware. This prevents rapid reporting of data when the sensor is reading at or near a threshold. 
int? I1Hyst 
When going from aware to non aware regions the sensor must go into the the non aware region by Threshmin + Hysteresiss or Threshmax - Hysteresis in order to become non aware. This prevents rapid reporting of data when the sensor is reading at or near a threshold. 
int? I2Hyst 
When going from aware to non aware regions the sensor must go into the the non aware region by Threshmin + Hysteresiss or Threshmax - Hysteresis in order to become non aware. This prevents rapid reporting of data when the sensor is reading at or near a threshold. 
int? I3Hyst 
When going from aware to non aware regions the sensor must go into the the non aware region by Threshmin + Hysteresiss or Threshmax - Hysteresis in order to become non aware. This prevents rapid reporting of data when the sensor is reading at or near a threshold. 
int? V123ThreshMin 
Values above ThreshMax or below ThreshMin will cause the sensor to go aware. 
int? V123ThreshMax 
Values above ThreshMax or below ThreshMin will cause the sensor to go aware. 
int? I1ThreshMin 
Values above ThreshMax or below ThreshMin will cause the sensor to go aware. 
int? I1ThreshMax 
Values above ThreshMax or below ThreshMin will cause the sensor to go aware. 
int? I2ThreshMin 
Values above ThreshMax or below ThreshMin will cause the sensor to go aware. 
int? I2ThreshMax 
Values above ThreshMax or below ThreshMin will cause the sensor to go aware. 
int? I3ThreshMin 
Values above ThreshMax or below ThreshMin will cause the sensor to go aware. 
int? I3ThreshMax 
Values above ThreshMax or below ThreshMin will cause the sensor to go aware. 
double? MeasurementInterval 
Interval between measurements. 
Boolean? accumulate 
If set to accumulate the total power accumulation will add to the previous accumulation. If not set, total power accumulation will reset to 0 immediately after reporting. 
int? failedTransmissionsBeforeLinkMode 
The number of transmissions the sensor sends without response from a gateway before it goes to battery saving link mode. In link mode the sensor will scan for a new gateway and if not found will enter battery saving sleep mode for 2 hours before trying to scan again. Lower number will allow sensors to find new gateways with fewer missed readings. Higher numbers will cause the sensor to hold it setting in a noisy RF environment better. (Zero will cause the sensor to never enter link mode. to find a new gateway channel the battery will have to be cycled out of the sensor.) 
Copyright (c) 2017. All rights reserved.
What do you think about this topic? Send feedback!