| Visioscan Set SDK Libraries 1.0.28 Visioscan Set SDK Help documentation file for C++ and C++/CLI |

Loading...
Searching...
No Matches
WAgvSensor.h
1#pragma once
2#include "../AgvSensor/AgvSensor.h"
3#include "WFieldName.h"
4#include "WObjectSize.h"
5#include "WFieldData.h"
6#include "WMultipleSampling.h"
7#include "WHoldTime.h"
8#include "WOutputActiveLevel.h"
9#include "WOutputFunction.h"
10#include "WAgvSensorLeds.h"
11#include <ThreadCreationException.h>
12#include <SensorErrorException.h>
13#include <BadAcknowledgmentException.h>
14#include <CommunicationException.h>
15
16 using namespace WUtils;
17 using namespace WBase;
18 using namespace WCommunication;
19 using namespace WToolboxException;
20 using namespace WEnumerations;
21 using namespace System::Collections;
22 using namespace System::Collections::Generic;
23 using namespace Com::AgvSensorWrapper::Structs;
24 using namespace WSensorData;
25
26 namespace Com {
27 namespace AgvSensorWrapper {
28 namespace Sensor {
29 public ref class WAgvSensor :
30 public WBaseSensor
31 {
32 public:
33 WAgvSensor() {
34 this->_sensor = (BaseSensor*)new AgvSensor();
35 _wRawData = gcnew WRawDataSensor();
36 }
37
38 WAgvSensor(WBaseCommunication^ pcomm) {
39 _wRawData = gcnew WRawDataSensor(pcomm);
40 _sensor = (BaseSensor*)new AgvSensor(pcomm->__nativeCommunication);
41
42 Communication = pcomm;
43 }
44
45 ~WAgvSensor() {
46 delete(_sensor);
47 }
48
52 WCommunicationStatus^ Initialize() override {
53 _wRawData->Communication = this->Communication;
54 _sensor->SetCommunication(this->Communication->__nativeCommunication);
55 return _wRawData->Initialize();
56 }
57
58 WRawData^ RetrieveRawData() {
59 return _wRawData->RetrieveRawData();
60 }
64 void SendMdi() {
65 _wRawData->SendMdi();
66 }
67
71 void StopMdi() {
72 _wRawData->StopMdi();
73 }
74
79 Protocol GetRawDataExchangeMode() {
80 return _wRawData->GetRawDataExchangeMode();
81 }
82
87 WAngleRange^ GetAngleRange() {
88 return _wRawData->GetAngleRange();
89 }
90
95 ScanPacketType GetDataPacketType() {
96 return _wRawData->GetDataPacketType();
97 }
98
103 unsigned int GetImmunityLevel() {
104 return _wRawData->GetImmunityLevel();
105 }
106
111 WContaminationThreshold^ GetContaminationThreshold() {
112 return _wRawData->GetContaminationThreshold();
113 }
114
119 WSoftwareVersion^ GetVersion() override {
120 return _wRawData->GetVersion();
121 }
122
127 int GetTemperature() {
128 return _wRawData->GetTemperature();
129 }
130
135 List<WRawDataError^>^ GetErrorLog() {
136 return _wRawData->GetErrorLog();
137 }
138
139 // Command settings management
140 // Data retrieve
145 WNetworkInformation^ GetNetworkInformation() {
146 return _wRawData->GetNetworkInformation();
147 }
148
153 String^ GetDeviceName() {
154 return _wRawData->GetDeviceName();
155 }
156
162 WConfigurationResult^ SetRawDataExchangeMode(Protocol pProtocol) {
163 return _wRawData->SetRawDataExchangeMode(pProtocol);
164 }
165
171 WConfigurationResult^ SetDataPacketType(ScanPacketType pPacketType) {
172 return _wRawData->SetDataPacketType(pPacketType);
173 }
174
180 WConfigurationResult^ SetAngleRange(WAngleRange^ pAngleRange) {
181 return _wRawData->SetAngleRange(pAngleRange);
182 }
183
189 WConfigurationResult^ SetImmunityLevel(int pImmunityLevel) {
190 return _wRawData->SetImmunityLevel(pImmunityLevel);
191 }
192
198 WConfigurationResult^ SetContaminationThreshold(WContaminationThreshold^ pContaminationThreshold) {
199 return _wRawData->SetContaminationThreshold(pContaminationThreshold);
200 }
201
202
208 WConfigurationResult^ SetNetworkInformation(WNetworkInformation^ pNetwork) {
209 return _wRawData->SetNetworkInformation(pNetwork);
210 }
211
216 WConfigurationResult^ SetDeviceName(String^ pName) {
217 return _wRawData->SetDeviceName(pName);
218 }
219
223 void ResetDevice() {
224 _wRawData->ResetDevice();
225 }
226
230 void RebootDevice() {
231 _wRawData->RebootDevice();
232 }
233
238 List<unsigned int>^ GetWms() {
239 try {
240 vector<unsigned int> actual = ((AgvSensor*)_sensor)->GetWms();
241 List<unsigned int>^ toReturn = gcnew List<unsigned int>();
242
243 for (int i = 0; i < actual.size(); i++) {
244
245 toReturn->Add(actual[i]);
246 }
247
248 return toReturn;
249 }
250 catch (BadAcknowledgmentException e) {
251 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
252 throw toThrow;
253 }
254 catch (CommunicationException e) {
255 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
256 toThrow->ErrorCode = e.GetErrorCode();
257 throw toThrow;
258 }
259 catch (SensorErrorException e) {
260 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
261 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
262 throw toThrow;
263
264 }
265 catch (ThreadCreationException e) {
266 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
267 throw toThrow;
268 }
269 }
270
275 /*WSensorLamps^ GetSensorLamps() {
276 try {
277 WSensorLamps^ toReturn = gcnew WSensorLamps();
278 SensorLamps actual = ((AgvSensor*)_sensor)->GetSensorLamps();
279 toReturn->Led1 = (LedColor)actual.GetLed1();
280 toReturn->Led2 = (LedColor)actual.GetLed2();
281 toReturn->Led3 = (LedColor)actual.GetLed3();
282 toReturn->Led4 = (LedColor)actual.GetLed4();
283 return toReturn;
284 }
285 catch (BadAcknowledgmentException e) {
286 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
287 throw toThrow;
288 }
289 catch (CommunicationException e) {
290 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
291 toThrow->ErrorCode = e.GetErrorCode();
292 throw toThrow;
293 }
294 catch (SensorErrorException e) {
295 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
296 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
297 throw toThrow;
298 }
299 catch (ThreadCreationException e) {
300 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
301 throw toThrow;
302 }
303 }*/
304
310 WFieldName^ GetFieldName(int fieldSetNumber) {
311 try {
312 WFieldName^ toReturn = gcnew WFieldName();
313
314 FieldName actual = ((AgvSensor*)_sensor)->GetFieldName(fieldSetNumber);
315
316 toReturn->FieldNumber = actual.GetFieldNumber();
317 toReturn->ProtectionZoneName = gcnew String(actual.GetProtectionZoneName().c_str());
318 toReturn->Warning1ZoneName = gcnew String(actual.GetWarning1ZoneName().c_str());
319 toReturn->Warning2ZoneName = gcnew String(actual.GetWarning2ZoneName().c_str());
320
321 return toReturn;
322 }
323 catch (BadAcknowledgmentException e) {
324 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
325 throw toThrow;
326 }
327 catch (CommunicationException e) {
328 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
329 toThrow->ErrorCode = e.GetErrorCode();
330 throw toThrow;
331 }
332 catch (SensorErrorException e) {
333 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
334 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
335 throw toThrow;
336
337 }
338 catch (ThreadCreationException e) {
339 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
340 throw toThrow;
341 }
342 }
347 WObjectSize^ GetObjectSize() {
348 try {
349 WObjectSize^ toReturn = gcnew WObjectSize();
350
351 ObjectSize actual = ((AgvSensor*)_sensor)->GetObjectSize();
352
353 toReturn->Protection = static_cast<ObjSizeEnum>(actual.GetProtection());
354 toReturn->Warning1 = static_cast<ObjSizeEnum>(actual.GetWarning1());
355 toReturn->Warning2 = static_cast<ObjSizeEnum>(actual.GetWarning2());
356
357 return toReturn;
358 }
359 catch (BadAcknowledgmentException e) {
360 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
361 throw toThrow;
362 }
363 catch (CommunicationException e) {
364 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
365 toThrow->ErrorCode = e.GetErrorCode();
366 throw toThrow;
367 }
368 catch (SensorErrorException e) {
369 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
370 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
371 throw toThrow;
372
373 }
374 catch (ThreadCreationException e) {
375 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
376 throw toThrow;
377 }
378 }
385 WFieldData^ GetField(int fieldNumber, ZoneTypeEnum zone) {
386 try {
387 WFieldData^ toReturn = gcnew WFieldData();
388
389 FieldData actual = ((AgvSensor*)_sensor)->GetField(fieldNumber, static_cast<NativeZoneTypeEnum>(zone));
390 toReturn->FieldNumber = actual.GetFieldNumber();
391 toReturn->ZoneType = static_cast<ZoneTypeEnum>(actual.GetZoneType());
392 toReturn->Parameter1 = actual.GetParameter1();
393 toReturn->Parameter2 = actual.GetParameter2();
394 toReturn->Crc = actual.GetCrc();
395 toReturn->GUID = gcnew String(actual.GetGUID().c_str());
396 toReturn->__fetchNativeData(actual.GetData());
397
398 return toReturn;
399 }
400 catch (BadAcknowledgmentException e) {
401 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
402 throw toThrow;
403 }
404 catch (CommunicationException e) {
405 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
406 toThrow->ErrorCode = e.GetErrorCode();
407 throw toThrow;
408 }
409 catch (SensorErrorException e) {
410 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
411 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
412 throw toThrow;
413
414 }
415 catch (ThreadCreationException e) {
416 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
417 throw toThrow;
418 }
419 }
420
425 WMultipleSampling^ GetMultipleSampling() {
426 try {
427 WMultipleSampling^ toReturn = gcnew WMultipleSampling();
428
429 MultipleSampling actual = ((AgvSensor*)_sensor)->GetMultipleSampling();
430 toReturn->Protection = actual.GetProtection();
431 toReturn->Warning1 = actual.GetWarning1();
432 toReturn->Warning2 = actual.GetWarning2();
433
434 return toReturn;
435 }
436 catch (BadAcknowledgmentException e) {
437 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
438 throw toThrow;
439 }
440 catch (CommunicationException e) {
441 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
442 toThrow->ErrorCode = e.GetErrorCode();
443 throw toThrow;
444 }
445 catch (SensorErrorException e) {
446 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
447 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
448 throw toThrow;
449
450 }
451 catch (ThreadCreationException e) {
452 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
453 throw toThrow;
454 }
455 }
456
461 WHoldTime^ GetHoldTime() {
462 try {
463 WHoldTime^ toReturn = gcnew WHoldTime();
464
465 HoldTime actual = ((AgvSensor*)_sensor)->GetHoldTime();
466 toReturn->Protection = actual.GetProtection();
467 toReturn->Warning1 = actual.GetWarning1();
468 toReturn->Warning2 = actual.GetWarning2();
469
470 return toReturn;
471 }
472 catch (BadAcknowledgmentException e) {
473 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
474 throw toThrow;
475 }
476 catch (CommunicationException e) {
477 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
478 toThrow->ErrorCode = e.GetErrorCode();
479 throw toThrow;
480 }
481 catch (SensorErrorException e) {
482 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
483 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
484 throw toThrow;
485
486 }
487 catch (ThreadCreationException e) {
488 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
489 throw toThrow;
490 }
491 }
492
497 WOutputActiveLevel^ GetOutputActiveLevel() {
498 try {
499 WOutputActiveLevel^ toReturn = gcnew WOutputActiveLevel();
500
501 OutputActiveLevel actual = ((AgvSensor*)_sensor)->GetOutputActiveLevel();
502 toReturn->Output1 = static_cast<ActiveLevelEnum>(actual.GetOutput1());
503 toReturn->Output2 = static_cast<ActiveLevelEnum>(actual.GetOutput2());
504 toReturn->Output3 = static_cast<ActiveLevelEnum>(actual.GetOutput3());
505 toReturn->Output4 = static_cast<ActiveLevelEnum>(actual.GetOutput4());
506
507 return toReturn;
508 }
509 catch (BadAcknowledgmentException e) {
510 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
511 throw toThrow;
512 }
513 catch (CommunicationException e) {
514 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
515 toThrow->ErrorCode = e.GetErrorCode();
516 throw toThrow;
517 }
518 catch (SensorErrorException e) {
519 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
520 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
521 throw toThrow;
522
523 }
524 catch (ThreadCreationException e) {
525 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
526 throw toThrow;
527 }
528 }
529
534 WOutputFunction^ GetOutputFunction() {
535 try {
536 WOutputFunction^ toReturn = gcnew WOutputFunction();
537
538 OutputFunction actual = ((AgvSensor*)_sensor)->GetOutputFunction();
539 toReturn->Output1 = static_cast<FunctionEnum>(actual.GetOutput1());
540 toReturn->Output2 = static_cast<FunctionEnum>(actual.GetOutput2());
541 toReturn->Output3 = static_cast<FunctionEnum>(actual.GetOutput3());
542 toReturn->Output4 = static_cast<FunctionEnum>(actual.GetOutput4());
543
544 return toReturn;
545 }
546 catch (BadAcknowledgmentException e) {
547 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
548 throw toThrow;
549 }
550 catch (CommunicationException e) {
551 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
552 toThrow->ErrorCode = e.GetErrorCode();
553 throw toThrow;
554 }
555 catch (SensorErrorException e) {
556 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
557 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
558 throw toThrow;
559
560 }
561 catch (ThreadCreationException e) {
562 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
563 throw toThrow;
564 }
565 }
569 WAgvSensorLeds^ GetSensorLeds() {
570 try {
571 WAgvSensorLeds^ toReturn = gcnew WAgvSensorLeds();
572
573 AgvSensorLeds actual = ((AgvSensor*)_sensor)->GetSensorLeds();
574 toReturn->ContaminationLed = actual.GetContaminationLed();
575 toReturn->StatusLed = actual.GetStatusLed();
576 toReturn->LogoLed = actual.GetLogoLed();
577
578 return toReturn;
579 }
580 catch (BadAcknowledgmentException e) {
581 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
582 throw toThrow;
583 }
584 catch (CommunicationException e) {
585 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
586 toThrow->ErrorCode = e.GetErrorCode();
587 throw toThrow;
588 }
589 catch (SensorErrorException e) {
590 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
591 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
592 throw toThrow;
593
594 }
595 catch (ThreadCreationException e) {
596 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
597 throw toThrow;
598 }
599 }
600
606 WConfigurationResult^ SetFieldName(WFieldName^ fieldName) {
607 try {
608 return toManagedInstance(((AgvSensor*)_sensor)->SetFieldName(*fieldName->__native));
609 }
610 catch (BadAcknowledgmentException e) {
611 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
612 throw toThrow;
613 }
614 catch (CommunicationException e) {
615 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
616 toThrow->ErrorCode = e.GetErrorCode();
617 throw toThrow;
618 }
619 catch (SensorErrorException e) {
620 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
621 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
622 throw toThrow;
623
624 }
625 catch (ThreadCreationException e) {
626 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
627 throw toThrow;
628 }
629 }
630
636 WConfigurationResult^ SetObjectSize(WObjectSize^ sizeToSet) {
637 try {
638 return toManagedInstance(((AgvSensor*)_sensor)->SetObjectSize(*sizeToSet->__native));
639 }
640 catch (BadAcknowledgmentException e) {
641 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
642 throw toThrow;
643 }
644 catch (CommunicationException e) {
645 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
646 toThrow->ErrorCode = e.GetErrorCode();
647 throw toThrow;
648 }
649 catch (SensorErrorException e) {
650 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
651 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
652 throw toThrow;
653
654 }
655 catch (ThreadCreationException e) {
656 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
657 throw toThrow;
658 }
659 }
660
666 WConfigurationResult^ SetField(WFieldData^ data) {
667 try {
668 return toManagedInstance(((AgvSensor*)_sensor)->SetField(*data->__native));
669 }
670 catch (BadAcknowledgmentException e) {
671 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
672 throw toThrow;
673 }
674 catch (CommunicationException e) {
675 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
676 toThrow->ErrorCode = e.GetErrorCode();
677 throw toThrow;
678 }
679 catch (SensorErrorException e) {
680 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
681 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
682 throw toThrow;
683
684 }
685 catch (ThreadCreationException e) {
686 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
687 throw toThrow;
688 }
689 }
690
696 WConfigurationResult^ SetMultipleSampling(WMultipleSampling^ sampling) {
697 try {
698 return toManagedInstance(((AgvSensor*)_sensor)->SetMultipleSampling(*sampling->__native));
699 }
700 catch (BadAcknowledgmentException e) {
701 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
702 throw toThrow;
703 }
704 catch (CommunicationException e) {
705 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
706 toThrow->ErrorCode = e.GetErrorCode();
707 throw toThrow;
708 }
709 catch (SensorErrorException e) {
710 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
711 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
712 throw toThrow;
713
714 }
715 catch (ThreadCreationException e) {
716 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
717 throw toThrow;
718 }
719 }
720
726 WConfigurationResult^ SetHoldTime(WHoldTime^ holdTime) {
727 try {
728 return toManagedInstance(((AgvSensor*)_sensor)->SetHoldTime(*holdTime->__native));
729 }
730 catch (BadAcknowledgmentException e) {
731 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
732 throw toThrow;
733 }
734 catch (CommunicationException e) {
735 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
736 toThrow->ErrorCode = e.GetErrorCode();
737 throw toThrow;
738 }
739 catch (SensorErrorException e) {
740 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
741 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
742 throw toThrow;
743
744 }
745 catch (ThreadCreationException e) {
746 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
747 throw toThrow;
748 }
749 }
750
756 WConfigurationResult^ SetOutputActiveLevel(WOutputActiveLevel^ activeLevel) {
757 try {
758 return toManagedInstance(((AgvSensor*)_sensor)->SetOutputActiveLevel(*activeLevel->__native));
759 }
760 catch (BadAcknowledgmentException e) {
761 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
762 throw toThrow;
763 }
764 catch (CommunicationException e) {
765 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
766 toThrow->ErrorCode = e.GetErrorCode();
767 throw toThrow;
768 }
769 catch (SensorErrorException e) {
770 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
771 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
772 throw toThrow;
773
774 }
775 catch (ThreadCreationException e) {
776 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
777 throw toThrow;
778 }
779 }
780
786 WConfigurationResult^ SetOutputFunction(WOutputFunction^ function) {
787 try {
788 return toManagedInstance(((AgvSensor*)_sensor)->SetOutputFunction(*function->__native));
789 }
790 catch (BadAcknowledgmentException e) {
791 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
792 throw toThrow;
793 }
794 catch (CommunicationException e) {
795 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
796 toThrow->ErrorCode = e.GetErrorCode();
797 throw toThrow;
798 }
799 catch (SensorErrorException e) {
800 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
801 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
802 throw toThrow;
803
804 }
805 catch (ThreadCreationException e) {
806 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
807 throw toThrow;
808 }
809 }
810
816 WConfigurationResult^ SetSensorLeds(WAgvSensorLeds^ leds) {
817 try {
818 return toManagedInstance(((AgvSensor*)_sensor)->SetSensorLeds(*leds->__native));
819 }
820 catch (BadAcknowledgmentException e) {
821 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
822 throw toThrow;
823 }
824 catch (CommunicationException e) {
825 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
826 toThrow->ErrorCode = e.GetErrorCode();
827 throw toThrow;
828 }
829 catch (SensorErrorException e) {
830 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
831 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
832 throw toThrow;
833
834 }
835 catch (ThreadCreationException e) {
836 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
837 throw toThrow;
838 }
839 }
840
845 WConfigurationResult^ StoreInFlash() {
846 try {
847 return toManagedInstance(((AgvSensor*)_sensor)->StoreInFlash());
848 }
849 catch (BadAcknowledgmentException e) {
850 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
851 throw toThrow;
852 }
853 catch (CommunicationException e) {
854 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
855 toThrow->ErrorCode = e.GetErrorCode();
856 throw toThrow;
857 }
858 catch (SensorErrorException e) {
859 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
860 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
861 throw toThrow;
862
863 }
864 catch (ThreadCreationException e) {
865 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
866 throw toThrow;
867 }
868 }
869 protected:
870 WConfigurationResult^ toManagedInstance(ConfigurationResult pResult) {
871 WConfigurationResult^ toReturn = gcnew WConfigurationResult();
872 toReturn->Result = pResult.GetResult();
873 for (int i = 0; i < pResult.GetReasons().size(); i++) {
874 toReturn->PushReason(gcnew String(pResult.GetReasons()[i].c_str()));
875 }
876 return toReturn;
877 }
878 private:
879 WRawDataSensor^ _wRawData;
880 };
881 }
882 }
883}
Com
Definition WAgvSensor.h:26
Com::AgvSensorWrapper::Structs
Definition WAgvSensorLeds.h:6
WUtils
Definition WAvailableResolution.h:7
WToolboxException
Definition WBadAcknowledgmentException.h:3
WBase
Definition WBaseCommunication.h:16
WEnumerations
Definition WEnums.h:4
WEnumerations::ZoneTypeEnum
ZoneTypeEnum
Definition WEnums.h:21
WEnumerations::ScanPacketType
ScanPacketType
Definition WEnums.h:7
WEnumerations::FunctionEnum
FunctionEnum
Definition WEnums.h:23
WEnumerations::Protocol
Protocol
Definition WEnums.h:6
WEnumerations::ObjSizeEnum
ObjSizeEnum
Definition WEnums.h:20
WEnumerations::ActiveLevelEnum
ActiveLevelEnum
Definition WEnums.h:22
WCommunication
Definition WEthernetCommunication.h:5
WSensorData
A wrapper on the RawData data encapsulation.
Definition WRawData.h:5
AgvSensor
Definition AgvSensor.h:37
AgvSensorLeds
Definition AgvSensorLeds.h:11
AgvSensorLeds::GetContaminationLed
bool GetContaminationLed()
Gets the contamination led.
Definition AgvSensorLeds.cpp:4
FieldData
Definition FieldData.h:14
FieldData::GetData
vector< uint16_t > GetData()
Definition FieldData.cpp:64
FieldData::GetZoneType
NativeZoneTypeEnum GetZoneType()
Definition FieldData.cpp:14
FieldData::GetCrc
uint16_t GetCrc()
Definition FieldData.cpp:44
FieldData::GetGUID
string GetGUID()
Definition FieldData.cpp:54
FieldData::GetParameter2
int16_t GetParameter2()
Definition FieldData.cpp:34
FieldData::GetFieldNumber
uint8_t GetFieldNumber()
Definition FieldData.cpp:4
FieldData::GetParameter1
int16_t GetParameter1()
Definition FieldData.cpp:24
FieldName
Definition FieldName.h:10
FieldName::GetFieldNumber
int GetFieldNumber()
Get the field number.
Definition FieldName.cpp:4
FieldName::GetProtectionZoneName
string GetProtectionZoneName()
Gets the protection zone name.
Definition FieldName.cpp:24
FieldName::GetWarning1ZoneName
string GetWarning1ZoneName()
Gets the warning 1 zone name.
Definition FieldName.cpp:34
FieldName::GetWarning2ZoneName
string GetWarning2ZoneName()
Gets the warning 2 zone name.
Definition FieldName.cpp:44
HoldTime
Definition HoldTime.h:10
HoldTime::GetWarning2
uint16_t GetWarning2()
Definition HoldTime.cpp:23
HoldTime::GetWarning1
uint16_t GetWarning1()
Definition HoldTime.cpp:13
HoldTime::GetProtection
uint16_t GetProtection()
Definition HoldTime.cpp:3
MultipleSampling
Definition MultipleSampling.h:10
MultipleSampling::GetWarning1
uint8_t GetWarning1()
Definition MultipleSampling.cpp:14
MultipleSampling::GetProtection
uint8_t GetProtection()
Definition MultipleSampling.cpp:4
MultipleSampling::GetWarning2
uint8_t GetWarning2()
Definition MultipleSampling.cpp:24
ObjectSize
Definition ObjectSize.h:13
ObjectSize::GetWarning2
NativeObjSizeEnum GetWarning2()
Gets the warning2 size.
Definition ObjectSize.cpp:24
ObjectSize::GetProtection
NativeObjSizeEnum GetProtection()
Gets the protection size.
Definition ObjectSize.cpp:4
ObjectSize::GetWarning1
NativeObjSizeEnum GetWarning1()
Gets the warning1 size.
Definition ObjectSize.cpp:14
OutputActiveLevel
Definition OutputActiveLevel.h:12
OutputActiveLevel::GetOutput1
NativeActiveLevelEnum GetOutput1()
Definition OutputActiveLevel.cpp:4
OutputActiveLevel::GetOutput3
NativeActiveLevelEnum GetOutput3()
Definition OutputActiveLevel.cpp:24
OutputActiveLevel::GetOutput4
NativeActiveLevelEnum GetOutput4()
Definition OutputActiveLevel.cpp:34
OutputActiveLevel::GetOutput2
NativeActiveLevelEnum GetOutput2()
Definition OutputActiveLevel.cpp:14
OutputFunction
Definition OutputFunction.h:12
OutputFunction::GetOutput4
NativeFunctionEnum GetOutput4()
Definition OutputFunction.cpp:34
OutputFunction::GetOutput1
NativeFunctionEnum GetOutput1()
Definition OutputFunction.cpp:4
OutputFunction::GetOutput3
NativeFunctionEnum GetOutput3()
Definition OutputFunction.cpp:24
OutputFunction::GetOutput2
NativeFunctionEnum GetOutput2()
Definition OutputFunction.cpp:14
Com::AgvSensorWrapper::Sensor::WAgvSensor
Definition WAgvSensor.h:31
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetRawDataExchangeMode
Protocol GetRawDataExchangeMode()
Get the raw data exchange mode.
Definition WAgvSensor.h:79
Com::AgvSensorWrapper::Sensor::WAgvSensor::SetSensorLeds
WConfigurationResult SetSensorLeds(WAgvSensorLeds^ leds)
Sets the sensor's leds.
Definition WAgvSensor.h:816
Com::AgvSensorWrapper::Sensor::WAgvSensor::RebootDevice
void RebootDevice()
Reboots the device.
Definition WAgvSensor.h:230
Com::AgvSensorWrapper::Sensor::WAgvSensor::StopMdi
void StopMdi()
Request the sensor to stop sending MDI data to host.
Definition WAgvSensor.h:71
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetVersion
WSoftwareVersion GetVersion() override
Gets the sensor version data.
Definition WAgvSensor.h:119
Com::AgvSensorWrapper::Sensor::WAgvSensor::WAgvSensor
WAgvSensor(WBaseCommunication^ pcomm)
Definition WAgvSensor.h:38
Com::AgvSensorWrapper::Sensor::WAgvSensor::SetField
WConfigurationResult SetField(WFieldData^ data)
Set the requested field data.
Definition WAgvSensor.h:666
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetTemperature
int GetTemperature()
Gets the temperature.
Definition WAgvSensor.h:127
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetDataPacketType
ScanPacketType GetDataPacketType()
Gets the data packed type.
Definition WAgvSensor.h:95
Com::AgvSensorWrapper::Sensor::WAgvSensor::SetAngleRange
WConfigurationResult SetAngleRange(WAngleRange^ pAngleRange)
Sets the Angle range (start and stop)
Definition WAgvSensor.h:180
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetObjectSize
WObjectSize GetObjectSize()
Gets the object size.
Definition WAgvSensor.h:347
Com::AgvSensorWrapper::Sensor::WAgvSensor::~WAgvSensor
~WAgvSensor()
Definition WAgvSensor.h:45
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetHoldTime
WHoldTime GetHoldTime()
Gets Hold Time (ms)
Definition WAgvSensor.h:461
Com::AgvSensorWrapper::Sensor::WAgvSensor::SetImmunityLevel
WConfigurationResult SetImmunityLevel(int pImmunityLevel)
Sets the sensor's immunity level.
Definition WAgvSensor.h:189
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetNetworkInformation
WNetworkInformation GetNetworkInformation()
Gets whole data information.
Definition WAgvSensor.h:145
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetOutputFunction
WOutputFunction GetOutputFunction()
Gest the output function for 4 outputs.
Definition WAgvSensor.h:534
Com::AgvSensorWrapper::Sensor::WAgvSensor::SetDataPacketType
WConfigurationResult SetDataPacketType(ScanPacketType pPacketType)
Sets the packet type returned in raw data. Can be either ScanPacketType::Distance or ScanPacketType::...
Definition WAgvSensor.h:171
Com::AgvSensorWrapper::Sensor::WAgvSensor::SendMdi
void SendMdi()
Request the sensor to start sending MDI data to host.
Definition WAgvSensor.h:64
Com::AgvSensorWrapper::Sensor::WAgvSensor::SetDeviceName
WConfigurationResult SetDeviceName(String^ pName)
Sets the sensor's name.
Definition WAgvSensor.h:216
Com::AgvSensorWrapper::Sensor::WAgvSensor::WAgvSensor
WAgvSensor()
Definition WAgvSensor.h:33
Com::AgvSensorWrapper::Sensor::WAgvSensor::StoreInFlash
WConfigurationResult StoreInFlash()
Store fields in the flash.
Definition WAgvSensor.h:845
Com::AgvSensorWrapper::Sensor::WAgvSensor::SetFieldName
WConfigurationResult SetFieldName(WFieldName^ fieldName)
Sets the field name data.
Definition WAgvSensor.h:606
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetContaminationThreshold
WContaminationThreshold GetContaminationThreshold()
Gets the contamination threshold.
Definition WAgvSensor.h:111
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetErrorLog
List< WRawDataError^> GetErrorLog()
Gets the error log.
Definition WAgvSensor.h:135
Com::AgvSensorWrapper::Sensor::WAgvSensor::SetContaminationThreshold
WConfigurationResult SetContaminationThreshold(WContaminationThreshold^ pContaminationThreshold)
Sets the contamination level threshold for warning and error.
Definition WAgvSensor.h:198
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetFieldName
WFieldName GetFieldName(int fieldSetNumber)
Gets the sensor lamps status.
Definition WAgvSensor.h:310
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetDeviceName
String GetDeviceName()
Gets the sensor's name.
Definition WAgvSensor.h:153
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetMultipleSampling
WMultipleSampling GetMultipleSampling()
Gets the multiple sampling data.
Definition WAgvSensor.h:425
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetField
WFieldData GetField(int fieldNumber, ZoneTypeEnum zone)
Returns the requested field data.
Definition WAgvSensor.h:385
Com::AgvSensorWrapper::Sensor::WAgvSensor::toManagedInstance
WConfigurationResult toManagedInstance(ConfigurationResult pResult)
Definition WAgvSensor.h:870
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetWms
List< unsigned int > GetWms()
Returns the window monitoring system of each sector (SECTORS_COUNT sectors - 132 -)
Definition WAgvSensor.h:238
Com::AgvSensorWrapper::Sensor::WAgvSensor::SetMultipleSampling
WConfigurationResult SetMultipleSampling(WMultipleSampling^ sampling)
Sets the multiple sampling.
Definition WAgvSensor.h:696
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetImmunityLevel
unsigned int GetImmunityLevel()
Gets the immunity level.
Definition WAgvSensor.h:103
Com::AgvSensorWrapper::Sensor::WAgvSensor::RetrieveRawData
WRawData RetrieveRawData()
Definition WAgvSensor.h:58
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetOutputActiveLevel
WOutputActiveLevel GetOutputActiveLevel()
Gets the output active level for 4 outputs.
Definition WAgvSensor.h:497
Com::AgvSensorWrapper::Sensor::WAgvSensor::Initialize
WCommunicationStatus Initialize() override
Initializes the object to connect the sensor.
Definition WAgvSensor.h:52
Com::AgvSensorWrapper::Sensor::WAgvSensor::SetOutputActiveLevel
WConfigurationResult SetOutputActiveLevel(WOutputActiveLevel^ activeLevel)
Sets the output active level.
Definition WAgvSensor.h:756
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetSensorLeds
WAgvSensorLeds GetSensorLeds()
Gets the navigation sensor leds status.
Definition WAgvSensor.h:569
Com::AgvSensorWrapper::Sensor::WAgvSensor::ResetDevice
void ResetDevice()
Resets the device.
Definition WAgvSensor.h:223
Com::AgvSensorWrapper::Sensor::WAgvSensor::SetNetworkInformation
WConfigurationResult SetNetworkInformation(WNetworkInformation^ pNetwork)
Set the overall network information except IP v4 and Port.
Definition WAgvSensor.h:208
Com::AgvSensorWrapper::Sensor::WAgvSensor::SetRawDataExchangeMode
WConfigurationResult SetRawDataExchangeMode(Protocol pProtocol)
Sets the RAW data exchange mode. Can be either TCP or UDP.
Definition WAgvSensor.h:162
Com::AgvSensorWrapper::Sensor::WAgvSensor::SetObjectSize
WConfigurationResult SetObjectSize(WObjectSize^ sizeToSet)
Sets the object size.
Definition WAgvSensor.h:636
Com::AgvSensorWrapper::Sensor::WAgvSensor::GetAngleRange
WAngleRange GetAngleRange()
Gets the angle range.
Definition WAgvSensor.h:87
Com::AgvSensorWrapper::Sensor::WAgvSensor::SetOutputFunction
WConfigurationResult SetOutputFunction(WOutputFunction^ function)
Sets the output function.
Definition WAgvSensor.h:786
Com::AgvSensorWrapper::Sensor::WAgvSensor::SetHoldTime
WConfigurationResult SetHoldTime(WHoldTime^ holdTime)
Sets the Hold time.
Definition WAgvSensor.h:726
Com::AgvSensorWrapper::Structs::WAgvSensorLeds
Definition WAgvSensorLeds.h:8
Com::AgvSensorWrapper::Structs::WAgvSensorLeds::ContaminationLed
property bool ContaminationLed
Definition WAgvSensorLeds.h:24
Com::AgvSensorWrapper::Structs::WFieldData
Definition WFieldData.h:15
Com::AgvSensorWrapper::Structs::WFieldData::FieldNumber
property int FieldNumber
Definition WFieldData.h:35
Com::AgvSensorWrapper::Structs::WFieldName
Definition WFieldName.h:15
Com::AgvSensorWrapper::Structs::WFieldName::FieldNumber
property int FieldNumber
Definition WFieldName.h:33
Com::AgvSensorWrapper::Structs::WHoldTime
Definition WHoldTime.h:8
Com::AgvSensorWrapper::Structs::WHoldTime::Protection
property unsigned int Protection
Definition WHoldTime.h:24
Com::AgvSensorWrapper::Structs::WMultipleSampling
Definition WMultipleSampling.h:8
Com::AgvSensorWrapper::Structs::WMultipleSampling::Protection
property unsigned int Protection
Definition WMultipleSampling.h:24
Com::AgvSensorWrapper::Structs::WObjectSize
Definition WObjectSize.h:11
Com::AgvSensorWrapper::Structs::WObjectSize::Protection
property ObjSizeEnum Protection
Definition WObjectSize.h:27
Com::AgvSensorWrapper::Structs::WOutputActiveLevel
Definition WOutputActiveLevel.h:11
Com::AgvSensorWrapper::Structs::WOutputActiveLevel::Output1
property ActiveLevelEnum Output1
Definition WOutputActiveLevel.h:28
Com::AgvSensorWrapper::Structs::WOutputFunction
Definition WOutputFunction.h:11
Com::AgvSensorWrapper::Structs::WOutputFunction::Output1
property FunctionEnum Output1
Definition WOutputFunction.h:28
SensorLeds::GetLogoLed
bool GetLogoLed()
Gets the logo led.
Definition SensorLeds.cpp:44
SensorLeds::GetStatusLed
bool GetStatusLed()
Gets the status led.
Definition SensorLeds.cpp:26
WAngleRange
A wrapper on the AngleRange data encapsulation.
Definition WAngleRange.h:7
WContaminationThreshold
A wrapper on the ContaminationThreshold data encapsulation.
Definition WContaminationThreshold.h:7
WNetworkInformation
A wrapper on the NetworkInformation data encapsulation.
Definition WNetworkInformation.h:14
WRawDataSensor
This class is a wrapper around the unmanaged code RawDataSensor. The goal of this classe is make acce...
Definition WRawDataSensor.h:36
WRawDataSensor::SetNetworkInformation
WConfigurationResult SetNetworkInformation(WNetworkInformation^ pNetwork)
Set the overall network information except IP v4 and Port.
Definition WRawDataSensor.h:818
WRawDataSensor::SetDeviceName
WConfigurationResult SetDeviceName(String^ pName)
Sets the sensor's name.
Definition WRawDataSensor.h:1142
WRawDataSensor::GetDeviceName
String GetDeviceName()
Gets the sensor's name.
Definition WRawDataSensor.h:714
WRawDataSensor::GetRawDataExchangeMode
Protocol GetRawDataExchangeMode()
Get the raw data exchange mode.
Definition WRawDataSensor.h:177
WRawDataSensor::StopMdi
void StopMdi()
Request the sensor to stop sending MDI data to host.
Definition WRawDataSensor.h:1338
WRawDataSensor::SetContaminationThreshold
WConfigurationResult SetContaminationThreshold(WContaminationThreshold^ pContaminationThreshold)
Sets the contamination level threshold for warning and error.
Definition WRawDataSensor.h:1082
WRawDataSensor::GetTemperature
int GetTemperature()
Gets the temperature.
Definition WRawDataSensor.h:543
WRawDataSensor::GetImmunityLevel
unsigned int GetImmunityLevel()
Gets the immunity level.
Definition WRawDataSensor.h:377
WRawDataSensor::GetAngleRange
WAngleRange GetAngleRange()
Gets the angle range.
Definition WRawDataSensor.h:313
WRawDataSensor::RetrieveRawData
WRawData RetrieveRawData()
Definition WRawDataSensor.h:1233
WRawDataSensor::SetImmunityLevel
WConfigurationResult SetImmunityLevel(int pImmunityLevel)
Sets the sensor's immunity level.
Definition WRawDataSensor.h:1052
WRawDataSensor::Initialize
WCommunicationStatus Initialize() override
Initializes the object to connect the sensor.
Definition WRawDataSensor.h:54
WRawDataSensor::GetNetworkInformation
WNetworkInformation GetNetworkInformation()
Gets whole data information.
Definition WRawDataSensor.h:138
WRawDataSensor::GetDataPacketType
ScanPacketType GetDataPacketType()
Gets the data packed type.
Definition WRawDataSensor.h:212
WRawDataSensor::ResetDevice
void ResetDevice()
Resets the device.
Definition WRawDataSensor.h:79
WRawDataSensor::SetDataPacketType
WConfigurationResult SetDataPacketType(ScanPacketType pPacketType)
Sets the packet type returned in raw data. Can be either ScanPacketType::Distance or ScanPacketType::...
Definition WRawDataSensor.h:885
WRawDataSensor::GetContaminationThreshold
WContaminationThreshold GetContaminationThreshold()
Gets the contamination threshold.
Definition WRawDataSensor.h:406
WRawDataSensor::SetRawDataExchangeMode
WConfigurationResult SetRawDataExchangeMode(Protocol pProtocol)
Sets the RAW data exchange mode. Can be either TCP or UDP.
Definition WRawDataSensor.h:848
WRawDataSensor::SendMdi
void SendMdi()
Request the sensor to start sending MDI data to host.
Definition WRawDataSensor.h:1309
WRawDataSensor::GetErrorLog
List< WRawDataError^> GetErrorLog()
Gets the error log.
Definition WRawDataSensor.h:572
WRawDataSensor::RebootDevice
void RebootDevice()
Reboots the device.
Definition WRawDataSensor.h:107
WRawDataSensor::GetVersion
WSoftwareVersion GetVersion() override
Gets the sensor version data.
Definition WRawDataSensor.h:477
WRawDataSensor::SetAngleRange
WConfigurationResult SetAngleRange(WAngleRange^ pAngleRange)
Sets the Angle range (start and stop)
Definition WRawDataSensor.h:991
BadAcknowledgmentException
An Exception used when a bad acknowledgment error is detected.
Definition BadAcknowledgmentException.h:15
BadAcknowledgmentException::what
virtual const char * what() const noexcept
Overload of message retrie.
Definition BadAcknowledgmentException.h:44
CommunicationException
An Exception used when a communication error is detected.
Definition CommunicationException.h:15
ConfigurationResult
Helper to encapsulate the configuration result.
Definition ConfigurationResult.h:15
ConfigurationResult::GetResult
bool GetResult()
Gets the result.
Definition ConfigurationResult.cpp:33
ConfigurationResult::GetReasons
vector< string > GetReasons()
Gets the reason of failure.
Definition ConfigurationResult.cpp:42
SensorErrorException
An exception used when the sensor returns an error related to a command excecution.
Definition SensorErrorException.h:14
ThreadCreationException
An Exception used when a thread creation error is detected.
Definition ThreadCreationException.h:16
WToolboxException::WBadAcknowledgmentException
Definition WBadAcknowledgmentException.h:6
WToolboxException::WCommunicationException
Definition WCommunicationException.h:6
WToolboxException::WCommunicationException::ErrorCode
property int ErrorCode
Definition WCommunicationException.h:12
WUtils::WCommunicationStatus
Definition WCommunicationStatus.h:16
WConfigurationResult
A wrapper on the ConfigurationResult data encapsulation.
Definition WConfigurationResult.h:16
WConfigurationResult::Result
property bool Result
Definition WConfigurationResult.h:30
WSensorData::WRawData
Definition WRawData.h:7
WToolboxException::WSensorException
Definition WSensorException.h:6
WToolboxException::WSensorException::ErrorCode
property String ErrorCode
Definition WSensorException.h:12
WUtils::WSoftwareVersion
A wrapper on the SoftwareVersion data encapsulation.
Definition WSoftwareVersion.h:12
WToolboxException::WThreadCreationException
Definition WThreadCreationException.h:6