Communicating with the OIT System
2
019-
03
59
configId
: Configuration ID of a parameter
parameterId
: Parameter ID of a parameter
newValue
: New value for the parameter
Sets the value for a parameter to newValue; version, configId, and parameterId can
be taken from the table in this case.
public bool ExistsResultParameter(ushort frameCounter, string
configId, string parameterId)
frameCounter
: Number of the image associated with the result parameter
configId
: Configuration ID of a parameter
parameterId
: Parameter ID of a parameter
Response:
True or false, depending on whether the parameter exists
Used to query whether a particular result parameter exists for a particular image.
string GetResultParameter(ushort frameCounter, string configId,
string parameterId)
configId
: Configuration ID of a parameter
parameterId
: Parameter ID of a parameter
Response:
The current value of the specified parameter
Returns the value of an individual parameter defined by the configuration ID and
parameter ID. The value is taken from an internal list and corresponds to the status
last received from the sensor.
The receipt of result data for a particular image is indicated by the
event
SensorResultDataReceived(ushort frameCounter).
angezeigt.
Bitmap GetImage(ushort frameCounter)
frameCounter
: Number of a received image
Response:
The image associated with the image number
Returns an image previously received from the sensor. The receipt of an image with
a particular number is indicated by the
event ImageReceived(ushort
frameCounter, Bitmap image).
angezeigt.
IList<ElementResult> GetResultList(ushort frameCounter)
frameCounter
: Number of the image associated with the graphics
Response
: List of overlay graphics for the specified image
IList<ElementShapeBase> GetShapes(ushort frameCounter)
frameCounter
: Number of the image associated with the graphics
Response
: List of overlay graphics for the specified image
Returns a list of graphics for an image overlay. The receipt of these graphics is
indicated by the
event ShapeDataReceived(ushort frameCounter,
List<IElement> shapeList).
angezeigt. The individual elements in the list
are of the
ElementShapeBase
type.
This class has the following attributes:
PointF ShapeLocation
: Coordinates of the top left corner of the graphic in the
image
Color ForeColor
: Color of the graphic
string Type
: Type of graphic, either type="Rectangle" or type="Text". Depending
on the type, the graphic can be parsed in
ElementShapeRectangle
or
ElementShapeText
and then has the following additional attributes:
ElementShapeRectangle:
Size Size: The size of the rectangular graphic
ElementShapeText:
stringText: The text in the text graphic
void ResetSensor()
Resets all the sensor's parameters to their factory default settings. After a
confirmation has been received from the sensor, a
ParameterDataReceived
event with
modifier = LOAD_DEFAULT_DATA
is triggered.
void SaveSettingsToFile(string filename)
Saves the current parameter set to the specified file. The current parameter set is
retrieved from the sensor and saved after receipt. After a successful save, a
SaveDataOnHdd
event is triggered. If an error occurs during the save, an
InternalError
event with
ErrorType = SAVE_FILE_ERROR
is triggered.
filename:
Valid path and file name