2#include "../AgvSensor/AgvSensor.h"
4#include "WObjectSize.h"
5#include "WWarningSpot.h"
6#include "WUncoverZone.h"
7#include "WDefaultValues.h"
9#include "WMultipleSampling.h"
11#include "WOnOffDelay.h"
12#include "WActiveLevel.h"
13#include "WOutputFunction.h"
14#include "WAgvSensorLeds.h"
15#include <ThreadCreationException.h>
16#include <SensorErrorException.h>
17#include <BadAcknowledgmentException.h>
18#include <CommunicationException.h>
25using namespace System::Collections;
26using namespace System::Collections::Generic;
31 namespace AgvSensorWrapper {
43 Communication = pcomm;
54 if (_sensor !=
nullptr) {
57 _sensor = (BaseSensor*)
new AgvSensor(Communication->__nativeCommunication);
64 if (toReturn->Status == ConnectionStatusEnum::Connected) {
65 _sensor->GetVersion();
149 throw gcnew NotImplementedException(
"Not implemented in this sensor version");
274 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
297 vector<unsigned int> actual = ((
AgvSensor*)_sensor)->GetWms();
298 List<unsigned int>^ toReturn = gcnew List<unsigned int>();
300 for (
int i = 0; i < actual.size(); i++) {
302 toReturn->Add(actual[i]);
318 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
334 string actual = ((
AgvSensor*)_sensor)->RequestChallenge();
336 return gcnew String(actual.c_str());
349 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
374 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
392 toReturn->Led2 = (LedColor)actual.
GetLed2();
393 toReturn->Led3 = (LedColor)actual.
GetLed3();
394 toReturn->Led4 = (LedColor)actual.
GetLed4();
408 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
429 toReturn->MainName = gcnew String(actual.
GetMainName().c_str());
430 toReturn->NearZoneName = gcnew String(actual.
GetNearZoneName().c_str());
432 toReturn->FarZoneName = gcnew String(actual.
GetFarZoneName().c_str());
447 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
483 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
505 toReturn->Far = actual.
GetFar();
520 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
557 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
576 FieldData actual = ((
AgvSensor*)_sensor)->GetField(fieldNumber,
static_cast<NativeZoneTypeEnum
>(zone));
581 toReturn->Crc = actual.
GetCrc();
582 toReturn->GUID = gcnew String(actual.
GetGUID().c_str());
583 toReturn->__fetchNativeData(actual.
GetData());
598 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
613 return ((
AgvSensor*)_sensor)->GetSelectedField();
626 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
649 toReturn->Far = actual.
GetFar();
664 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
685 toReturn->Far = actual.
GetFar();
700 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
737 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
774 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
811 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
848 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
863 String^ deviceName = gcnew String(actual.
GetDeviceName().c_str());
912 toReturn->AngleRange = angleRange;
913 toReturn->ContaminationThreshold = contaminationThreshold;
914 toReturn->ObjectSize = objectSize;
915 toReturn->WarningSpot = warningSpot;
916 toReturn->OnDelays = onDelays;
917 toReturn->OffDelays = offDelays;
918 toReturn->OutputFunction = outputFunction;
919 toReturn->OutputActiveLevel = activeLevel;
920 toReturn->SensorLeds = sensorLeds;
950 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
980 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1010 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1040 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1071 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1101 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1132 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1162 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1192 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1222 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1255 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1285 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1297 ((
AgvSensor*)_sensor)->SetInputControlModeStatus(
static_cast<NativeInputControleModeStatus
>(controlMode));
1310 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1323 ((
AgvSensor*)_sensor)->SetZone1Mode(
static_cast<NativeZoneModeEnum
>(mode));
1336 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1349 ((
AgvSensor*)_sensor)->SetInputsValue(
static_cast<NativeActiveLevelEnum
>(input1),
static_cast<NativeActiveLevelEnum
>(input2),
static_cast<NativeActiveLevelEnum
>(input3),
static_cast<NativeActiveLevelEnum
>(input4));
1362 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1392 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1421 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1439 return platformVersion;
1452 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1463 ((
AgvSensor*)_sensor)->StartLearning(fieldNumber,
static_cast<NativeZoneTypeEnum
>(zone), uncover,
static_cast<NativeObjSizeEnum
>(objectSize));
1476 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1501 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1526 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1540 NativeFieldLearningStatus status = ((
AgvSensor*)_sensor)->GetLearningStatus();
1556 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1573 unsigned int learningErrorCode = ((
AgvSensor*)_sensor)->GetLearningErrorCode();
1575 return learningErrorCode;
1588 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1602 NativeAbortStatus status = ((
AgvSensor*)_sensor)->GetAbortStatus();
1618 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1634 NativeInputControleModeStatus status = ((
AgvSensor*)_sensor)->GetInputControlModeStatus();
1650 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1664 NativeZoneModeEnum status = ((
AgvSensor*)_sensor)->GetZone1Mode();
1680 toThrow->
ErrorCode = gcnew String(e.GetErrorCode().c_str());
1695 for (
int i = 0; i < pResult.
GetReasons().size(); i++) {
1696 toReturn->PushReason(gcnew String(pResult.
GetReasons()[i].c_str()));
Definition WActiveLevel.h:7
Definition WActiveLevel.h:9
Definition WAvailableResolution.h:7
Definition WBadAcknowledgmentException.h:3
Definition WBaseCommunication.h:16
ZoneModeEnum
Definition WEnums.h:32
ZoneTypeEnum
Definition WEnums.h:21
FieldLearningStatusEnum
Definition WEnums.h:24
ScanPacketType
Definition WEnums.h:7
UncoveredZoneSizeEnum
Definition WEnums.h:29
FunctionEnum
Definition WEnums.h:23
InputControleModeStatus
Definition WEnums.h:31
Protocol
Definition WEnums.h:6
AbortStatus
Definition WEnums.h:30
ObjSizeEnum
Definition WEnums.h:20
ActiveLevelEnum
Definition WEnums.h:22
Definition WEthernetCommunication.h:5
A wrapper on the RawData data encapsulation.
Definition WRawData.h:5
Definition ActiveLevel.h:12
NativeActiveLevelEnum GetLevel3()
Definition ActiveLevel.cpp:24
NativeActiveLevelEnum GetLevel1()
Definition ActiveLevel.cpp:4
NativeActiveLevelEnum GetLevel2()
Definition ActiveLevel.cpp:14
NativeActiveLevelEnum GetLevel4()
Definition ActiveLevel.cpp:34
NativeActiveLevelEnum GetErrorLevel()
Definition ActiveLevel.cpp:44
Definition AgvSensor.h:44
Definition AgvSensorLeds.h:11
bool GetContaminationLed()
Gets the contamination led.
Definition AgvSensorLeds.cpp:4
Definition DefaultValues.h:19
OnOffDelay GetOnDelays()
Definition DefaultValues.cpp:8
OnOffDelay GetOffDelays()
Definition DefaultValues.cpp:9
string GetDeviceName()
Definition DefaultValues.cpp:3
OutputFunction GetOutputFunction()
Definition DefaultValues.cpp:10
AngleRange GetAngleRange()
Definition DefaultValues.cpp:4
ObjectSize GetObjectSize()
Definition DefaultValues.cpp:6
ContaminationThreshold GetContaminationThreshold()
Definition DefaultValues.cpp:5
AgvSensorLeds GetSensorLeds()
Definition DefaultValues.cpp:12
WarningSpot GetWarningSpot()
Definition DefaultValues.cpp:7
ActiveLevel GetOutputActiveLevel()
Definition DefaultValues.cpp:11
Definition FieldData.h:14
vector< uint16_t > GetData()
Definition FieldData.cpp:73
NativeZoneTypeEnum GetZoneType()
Definition FieldData.cpp:23
uint16_t GetCrc()
Definition FieldData.cpp:53
string GetGUID()
Definition FieldData.cpp:63
int16_t GetParameter2()
Definition FieldData.cpp:43
uint8_t GetFieldNumber()
Definition FieldData.cpp:13
int16_t GetParameter1()
Definition FieldData.cpp:33
Definition FieldName.h:10
string GetNearZoneName()
Gets the near_ zone name.
Definition FieldName.cpp:24
int GetFieldNumber()
Get the field number.
Definition FieldName.cpp:4
string GetMainName()
Gets the field name.
Definition FieldName.cpp:14
string GetFarZoneName()
Gets the far zone name.
Definition FieldName.cpp:44
string GetMiddleZoneName()
Gets the middle zone name.
Definition FieldName.cpp:34
Definition ObjectSize.h:13
NativeObjSizeEnum GetMiddle()
Gets the middle size.
Definition ObjectSize.cpp:14
NativeObjSizeEnum GetFar()
Gets the far size.
Definition ObjectSize.cpp:24
NativeObjSizeEnum GetNear()
Gets the near_ size.
Definition ObjectSize.cpp:4
Definition OnOffDelay.h:10
uint16_t GetFar()
Definition OnOffDelay.cpp:23
uint16_t GetMiddle()
Definition OnOffDelay.cpp:13
uint16_t GetNear()
Definition OnOffDelay.cpp:3
Definition OutputFunction.h:12
NativeFunctionEnum GetOutput4()
Definition OutputFunction.cpp:34
NativeFunctionEnum GetOutput1()
Definition OutputFunction.cpp:4
NativeFunctionEnum GetOutput3()
Definition OutputFunction.cpp:24
NativeFunctionEnum GetOutput2()
Definition OutputFunction.cpp:14
Definition UncoverZone.h:13
NativeUncoverZoneSizeEnum GetMiddle()
Gets the middle uncovered size.
Definition UncoverZone.cpp:15
NativeUncoverZoneSizeEnum GetFar()
Gets the far uncovered size.
Definition UncoverZone.cpp:25
NativeUncoverZoneSizeEnum GetNear()
Gets the near_ uncovered zise.
Definition UncoverZone.cpp:5
Definition WarningSpot.h:13
uint8_t GetFar()
Gets the far size.
Definition WarningSpot.cpp:31
uint8_t GetMiddle()
Gets the middle size.
Definition WarningSpot.cpp:15
uint8_t GetNear()
Gets the near size.
Definition WarningSpot.cpp:3
Definition WActiveLevel.h:11
property ActiveLevelEnum Level1
Definition WActiveLevel.h:29
Definition WAgvSensor.h:35
Protocol GetRawDataExchangeMode()
Get the raw data exchange mode.
Definition WAgvSensor.h:92
WOnOffDelay GetOffDelay()
Gets OFF delay (ms)
Definition WAgvSensor.h:678
WOnOffDelay GetOnDelay()
Gets ON delay (ms)
Definition WAgvSensor.h:642
void SetZone1Mode(ZoneModeEnum mode)
Definition WAgvSensor.h:1321
InputControleModeStatus GetInputControlModeStatus()
Definition WAgvSensor.h:1630
WConfigurationResult SetSensorLeds(WAgvSensorLeds^ leds)
Sets the sensor's leds.
Definition WAgvSensor.h:1377
void RebootDevice()
Reboots the device.
Definition WAgvSensor.h:287
WActiveLevel GetOutputActiveLevel()
Gets the output active level for 4 outputs.
Definition WAgvSensor.h:714
String RequestChallenge()
Request the challenge to the sensor.
Definition WAgvSensor.h:332
WUncoverZone GetUncoverZoneSize()
Gets the uncovered zone size.
Definition WAgvSensor.h:534
void StartLearning(int fieldNumber, ZoneTypeEnum zone, unsigned int uncover, ObjSizeEnum objectSize)
Definition WAgvSensor.h:1461
void StopMdi()
Request the sensor to stop sending MDI data to host.
Definition WAgvSensor.h:84
AbortStatus GetAbortStatus()
Definition WAgvSensor.h:1598
WSoftwareVersion GetVersion() override
Gets the sensor version data.
Definition WAgvSensor.h:132
WAgvSensor(WBaseCommunication^ pcomm)
Definition WAgvSensor.h:42
WConfigurationResult SetField(WFieldData^ data)
Set the requested field data.
Definition WAgvSensor.h:1086
void StopLearning()
Definition WAgvSensor.h:1486
ScanPacketType GetDataPacketType()
Gets the data packed type.
Definition WAgvSensor.h:108
long GetRuntimeHours() override
Gets the sensor runtime hours.
Definition WAgvSensor.h:156
void AbortLearning()
Definition WAgvSensor.h:1511
WConfigurationResult SetAngleRange(WAngleRange^ pAngleRange)
Sets the Angle range (start and stop)
Definition WAgvSensor.h:209
WConfigurationResult SendCypher(String^ challenge)
Definition WAgvSensor.h:359
String GetDeviceName() override
Gets the sensor's name.
Definition WAgvSensor.h:182
WObjectSize GetObjectSize()
Gets the object size.
Definition WAgvSensor.h:460
WActiveLevel GetInputStatus()
Gets the input active status for 4 inputs.
Definition WAgvSensor.h:788
~WAgvSensor()
Definition WAgvSensor.h:46
WConfigurationResult SetImmunityLevel(int pImmunityLevel)
Sets the sensor's immunity level.
Definition WAgvSensor.h:218
WNetworkInformation GetNetworkInformation()
Gets whole data information.
Definition WAgvSensor.h:174
WDefaultValues GetDefaultValues()
Definition WAgvSensor.h:858
void ResetAllFields()
Resets all fields to MAXVALUE.
Definition WAgvSensor.h:259
WOutputFunction GetOutputFunction()
Gest the output function for 4 outputs.
Definition WAgvSensor.h:825
WSensorLamps GetSensorLamps()
Gets the sensor lamps status.
Definition WAgvSensor.h:387
WConfigurationResult SetDataPacketType(ScanPacketType pPacketType)
Sets the packet type returned in raw data. Can be either ScanPacketType::Distance or ScanPacketType::...
Definition WAgvSensor.h:200
WActiveLevel GetOutputStatus()
Gets the output active status for 4 outputs.
Definition WAgvSensor.h:751
void SendMdi()
Request the sensor to start sending MDI data to host.
Definition WAgvSensor.h:77
FieldLearningStatusEnum GetLearningStatus()
Definition WAgvSensor.h:1536
unsigned int GetLearningErrorCode() override
Gets the platform version.
Definition WAgvSensor.h:1571
WAgvSensor()
Definition WAgvSensor.h:37
WConfigurationResult StoreInFlash()
Store fields in the flash.
Definition WAgvSensor.h:1406
WConfigurationResult SetFieldName(WFieldName^ fieldName)
Sets the field name data.
Definition WAgvSensor.h:965
ZoneModeEnum GetZone1Mode()
Definition WAgvSensor.h:1660
WContaminationThreshold GetContaminationThreshold()
Gets the contamination threshold.
Definition WAgvSensor.h:124
List< WRawDataError^> GetErrorLog()
Gets the error log.
Definition WAgvSensor.h:164
WConfigurationResult SetContaminationThreshold(WContaminationThreshold^ pContaminationThreshold)
Sets the contamination level threshold for warning and error.
Definition WAgvSensor.h:227
WWarningSpot GetWarningSpot()
Gets the warning spot value.
Definition WAgvSensor.h:497
WFieldName GetFieldName(int fieldSetNumber)
Gets the field name for a given field number.
Definition WAgvSensor.h:422
WFieldData GetField(int fieldNumber, ZoneTypeEnum zone)
Returns the requested field data.
Definition WAgvSensor.h:572
WConfigurationResult toManagedInstance(ConfigurationResult pResult)
Definition WAgvSensor.h:1692
List< unsigned int > GetWms()
Returns the window monitoring system of each sector (SECTORS_COUNT sectors - 132 -)
Definition WAgvSensor.h:295
WConfigurationResult SetMultipleSampling(WMultipleSampling^ sampling)
Sets the multiple sampling.
Definition WAgvSensor.h:1117
WConfigurationResult SetOutputActiveLevel(WActiveLevel^ activeLevel)
Sets the output active level.
Definition WAgvSensor.h:1240
unsigned int GetImmunityLevel()
Gets the immunity level.
Definition WAgvSensor.h:116
WRawData RetrieveRawData()
Definition WAgvSensor.h:71
WCommunicationStatus Initialize() override
Initializes the object to connect the sensor.
Definition WAgvSensor.h:53
WConfigurationResult SetOffDelay(WOnOffDelay^ offDelay)
Sets the OFF delay.
Definition WAgvSensor.h:1207
void SetInputsValue(ActiveLevelEnum input1, ActiveLevelEnum input2, ActiveLevelEnum input3, ActiveLevelEnum input4)
Definition WAgvSensor.h:1347
WConfigurationResult SetWarningSpot(WWarningSpot^ spotToSet)
Sets the warning spots.
Definition WAgvSensor.h:1025
WAgvSensorLeds GetSensorLeds()
Gets the navigation sensor leds status.
Definition WAgvSensor.h:928
WConfigurationResult SetDeviceName(String^ pName) override
Sets the sensor's name.
Definition WAgvSensor.h:245
void ResetDevice()
Resets the device.
Definition WAgvSensor.h:252
int GetTemperature() override
Gets the temperature.
Definition WAgvSensor.h:140
unsigned int GetPlatformVersion() override
Gets the platform version.
Definition WAgvSensor.h:1435
WConfigurationResult SetNetworkInformation(WNetworkInformation^ pNetwork)
Set the overall network information except IP v4 and Port.
Definition WAgvSensor.h:237
WConfigurationResult SetRawDataExchangeMode(Protocol pProtocol)
Sets the RAW data exchange mode. Can be either TCP or UDP.
Definition WAgvSensor.h:191
WConfigurationResult SetObjectSize(WObjectSize^ sizeToSet)
Sets the object size.
Definition WAgvSensor.h:995
WAngleRange GetAngleRange()
Gets the angle range.
Definition WAgvSensor.h:100
unsigned int GetSelectedField()
Returns the current selected field data based on inputs.
Definition WAgvSensor.h:611
WConfigurationResult SetOnDelay(WOnOffDelay^ onDelay)
Sets the ON delay.
Definition WAgvSensor.h:1177
WContaminationStatus GetContaminationStatus() override
Gets the contamination status.
Definition WAgvSensor.h:148
WConfigurationResult SetOutputFunction(WOutputFunction^ function)
Sets the output function.
Definition WAgvSensor.h:1270
WConfigurationResult SetHoldTime(WHoldTime^ holdTime)
Sets the Hold time.
Definition WAgvSensor.h:1147
WConfigurationResult SetUncoverZoneSize(WUncoverZone^ sizeToSet)
Definition WAgvSensor.h:1056
void SetInputControlModeStatus(InputControleModeStatus controlMode)
Definition WAgvSensor.h:1295
Definition WAgvSensorLeds.h:8
property bool ContaminationLed
Definition WAgvSensorLeds.h:24
Definition WDefaultValues.h:22
property String DeviceName
Definition WDefaultValues.h:47
Definition WFieldData.h:15
property int FieldNumber
Definition WFieldData.h:35
Definition WFieldName.h:15
property int FieldNumber
Definition WFieldName.h:33
Definition WMultipleSampling.h:8
Definition WObjectSize.h:11
property ObjSizeEnum Near
Definition WObjectSize.h:27
Definition WOnOffDelay.h:8
property unsigned int Near
Definition WOnOffDelay.h:24
Definition WOutputFunction.h:11
property FunctionEnum Output1
Definition WOutputFunction.h:28
Definition WUncoverZone.h:11
property UncoveredZoneSizeEnum Near
Definition WUncoverZone.h:27
Definition WWarningSpot.h:11
property unsigned int Near
Definition WWarningSpot.h:26
int GetStart()
Gets the start angle.
Definition AngleRange.cpp:7
int GetStop()
Gets the stop angle.
Definition AngleRange.cpp:25
unsigned int GetWarning()
Gets the warning status.
Definition ContaminationThreshold.cpp:8
unsigned int GetError()
Gets the error status.
Definition ContaminationThreshold.cpp:26
Helper to encapsulate the sensor lamps state.
Definition SensorLamps.h:20
LEDCOLOR GetLed4()
Gets the LED4 status.
Definition SensorLamps.cpp:84
LEDCOLOR GetLed3()
Gets the LED3 status.
Definition SensorLamps.cpp:66
LEDCOLOR GetLed2()
Gets the LED2 status.
Definition SensorLamps.cpp:48
LEDCOLOR GetLed1()
Gets the LED1 status.
Definition SensorLamps.cpp:30
bool GetLogoLed()
Gets the logo led.
Definition SensorLeds.cpp:44
bool GetStatusLed()
Gets the status led.
Definition SensorLeds.cpp:26
A wrapper on the AngleRange data encapsulation.
Definition WAngleRange.h:7
property int Start
Definition WAngleRange.h:21
A wrapper on the ContaminationThreshold data encapsulation.
Definition WContaminationThreshold.h:7
property int Warning
Definition WContaminationThreshold.h:23
A wrapper on the NetworkInformation data encapsulation.
Definition WNetworkInformation.h:14
This class is a wrapper around the unmanaged code RawDataSensor. The goal of this classe is make acce...
Definition WRawDataSensor.h:37
int GetTemperature() override
Gets the temperature.
Definition WRawDataSensor.h:539
WConfigurationResult SetNetworkInformation(WNetworkInformation^ pNetwork)
Set the overall network information except IP v4 and Port.
Definition WRawDataSensor.h:814
unsigned int GetPlatformVersion() override
Gets the platform version.
Definition WRawDataSensor.h:508
Protocol GetRawDataExchangeMode()
Get the raw data exchange mode.
Definition WRawDataSensor.h:178
void StopMdi()
Request the sensor to stop sending MDI data to host.
Definition WRawDataSensor.h:1334
String GetDeviceName() override
Gets the sensor's name.
Definition WRawDataSensor.h:710
WConfigurationResult SetContaminationThreshold(WContaminationThreshold^ pContaminationThreshold)
Sets the contamination level threshold for warning and error.
Definition WRawDataSensor.h:1078
unsigned int GetImmunityLevel()
Gets the immunity level.
Definition WRawDataSensor.h:378
WAngleRange GetAngleRange()
Gets the angle range.
Definition WRawDataSensor.h:314
WRawData RetrieveRawData()
Definition WRawDataSensor.h:1229
WConfigurationResult SetImmunityLevel(int pImmunityLevel)
Sets the sensor's immunity level.
Definition WRawDataSensor.h:1048
WCommunicationStatus Initialize() override
Initializes the object to connect the sensor.
Definition WRawDataSensor.h:55
long GetRuntimeHours() override
Gets the sensor runtime hours.
Definition WRawDataSensor.h:680
WNetworkInformation GetNetworkInformation()
Gets whole data information.
Definition WRawDataSensor.h:139
WConfigurationResult SetDeviceName(String^ pName) override
Sets the sensor's name.
Definition WRawDataSensor.h:1138
ScanPacketType GetDataPacketType()
Gets the data packed type.
Definition WRawDataSensor.h:213
void ResetDevice()
Resets the device.
Definition WRawDataSensor.h:80
WConfigurationResult SetDataPacketType(ScanPacketType pPacketType)
Sets the packet type returned in raw data. Can be either ScanPacketType::Distance or ScanPacketType::...
Definition WRawDataSensor.h:881
WContaminationThreshold GetContaminationThreshold()
Gets the contamination threshold.
Definition WRawDataSensor.h:407
WConfigurationResult SetRawDataExchangeMode(Protocol pProtocol)
Sets the RAW data exchange mode. Can be either TCP or UDP.
Definition WRawDataSensor.h:844
void SendMdi()
Request the sensor to start sending MDI data to host.
Definition WRawDataSensor.h:1305
List< WRawDataError^> GetErrorLog()
Gets the error log.
Definition WRawDataSensor.h:568
void RebootDevice()
Reboots the device.
Definition WRawDataSensor.h:108
WSoftwareVersion GetVersion() override
Gets the sensor version data.
Definition WRawDataSensor.h:442
WConfigurationResult SetAngleRange(WAngleRange^ pAngleRange)
Sets the Angle range (start and stop)
Definition WRawDataSensor.h:987
A wrapper on the SensorLamps data encapsulation.
Definition WSensorLamps.h:11
property LedColor Led1
Definition WSensorLamps.h:29
An Exception used when a bad acknowledgment error is detected.
Definition BadAcknowledgmentException.h:15
virtual const char * what() const noexcept
Overload of message retrie.
Definition BadAcknowledgmentException.h:44
An Exception used when a communication error is detected.
Definition CommunicationException.h:15
Helper to encapsulate the configuration result.
Definition ConfigurationResult.h:15
bool GetResult()
Gets the result.
Definition ConfigurationResult.cpp:33
vector< string > GetReasons()
Gets the reason of failure.
Definition ConfigurationResult.cpp:42
An exception used when the sensor returns an error related to a command excecution.
Definition SensorErrorException.h:14
An Exception used when a thread creation error is detected.
Definition ThreadCreationException.h:16
Definition WBadAcknowledgmentException.h:6
Definition WCommunicationException.h:6
property int ErrorCode
Definition WCommunicationException.h:12
Definition WCommunicationStatus.h:16
A wrapper on the ConfigurationResult data encapsulation.
Definition WConfigurationResult.h:16
property bool Result
Definition WConfigurationResult.h:30
Definition WContaminationStatus.h:6
Definition WSensorException.h:6
property String ErrorCode
Definition WSensorException.h:12
A wrapper on the SoftwareVersion data encapsulation.
Definition WSoftwareVersion.h:12
Definition WThreadCreationException.h:6
static char * ConvertToNativeString(String^ toConvert)
Definition WUtilities.h:16