-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWPC_example_code.cs
More file actions
1999 lines (1808 loc) · 67.6 KB
/
WPC_example_code.cs
File metadata and controls
1999 lines (1808 loc) · 67.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class WPC_example_code
{
#region ProductMessage
static void showProductMessage()
{
Console.WriteLine("");
Console.WriteLine("DeviceFinder, please input 0");
Console.WriteLine("STEM, please input 1");
Console.WriteLine("Emotion, please input 2");
Console.WriteLine("EDriveST, please input 3");
Console.WriteLine("EthanA, please input 10");
Console.WriteLine("EthanD, please input 11");
Console.WriteLine("EthanI, please input 12");
Console.WriteLine("EthanL, please input 13");
Console.WriteLine("EthanO, please input 14");
Console.WriteLine("EthanP, please input 15");
Console.WriteLine("EthanT, please input 16");
Console.WriteLine("EthanIA, please input 17");
Console.WriteLine("EthanEXD, please input 18");
Console.WriteLine("USBDAQF1AD, please input 20");
Console.WriteLine("USBDAQF1AOD, please input 21");
Console.WriteLine("USBDAQF1CD, please input 22");
Console.WriteLine("USBDAQF1D, please input 23");
Console.WriteLine("USBDAQF1DSNK, please input 24");
Console.WriteLine("USBDAQF1RD, please input 25");
Console.WriteLine("USBDAQF1TD, please input 26");
Console.WriteLine("WifiDAQE3A, please input 30");
Console.WriteLine("WifiDAQE3AH, please input 31");
Console.WriteLine("WifiDAQF4A, please input 32");
}
#endregion
#region DeviceFinderMessage
static void showDeviceFinderMessage()
{
Console.WriteLine("");
Console.WriteLine("For Find_devices");
Console.WriteLine("----------------");
Console.WriteLine("Run find_all_devices.cs, please input 0");
}
#endregion
#region SysETHMessage
static void showSysETHMessage()
{
Console.WriteLine("");
Console.WriteLine("For System_ETH");
Console.WriteLine("----------------");
Console.WriteLine("Run get_network_info.cs, please input 1");
Console.WriteLine("Run get_serial_number.cs, please input 2");
Console.WriteLine("Run hello_world.cs, please input 3");
Console.WriteLine("Run set_and_get_RTC.cs, please input 4");
}
#endregion
#region SysUSBMessage
static void showSysUSBMessage()
{
Console.WriteLine("");
Console.WriteLine("For System_USB");
Console.WriteLine("----------------");
Console.WriteLine("Run get_serial_number.cs, please input 2");
Console.WriteLine("Run hello_world.cs, please input 3");
Console.WriteLine("Run set_and_get_RTC.cs, please input 4");
}
#endregion
#region SysWifiMessage
static void showSysWifiMessage()
{
Console.WriteLine("");
Console.WriteLine("For System_Wifi");
Console.WriteLine("----------------");
Console.WriteLine("Run get_network_info.cs, please input 1");
Console.WriteLine("Run get_serial_number.cs, please input 2");
Console.WriteLine("Run hello_world.cs, please input 3");
Console.WriteLine("Run set_and_get_RTC.cs, please input 4");
Console.WriteLine("Run get_Wifi_DAQ_status.cs, please input 5");
Console.WriteLine("Run set_LED_status.cs, please input 6");
}
#endregion
#region AIMessage
static void showAI24BitMessage()
{
Console.WriteLine("");
Console.WriteLine("For AI");
Console.WriteLine("------");
Console.WriteLine("Run AI_on_demand_once.cs, please input 120");
}
static void showAIMessage()
{
Console.WriteLine("");
Console.WriteLine("For AI");
Console.WriteLine("------");
Console.WriteLine("Run AI_continuous_multi_slot.cs, please input 121");
Console.WriteLine("Run AI_continuous_with_logger.cs, please input 122");
Console.WriteLine("Run AI_continuous.cs, please input 123");
Console.WriteLine("Run AI_N_samples_once.cs, please input 124");
Console.WriteLine("Run AI_on_demand_in_loop.cs, please input 125");
Console.WriteLine("Run AI_on_demand_once.cs, please input 126");
}
static void showRTCAIMessage()
{
Console.WriteLine("");
Console.WriteLine("For RTC AI ");
Console.WriteLine("------");
Console.WriteLine("Run RTC_trigger_AI_continuous.cs, please input 127");
Console.WriteLine("Run RTC_trigger_AI_N_samples.cs, please input 128");
Console.WriteLine("Run RTC_trigger_AI_on_demand.cs, please input 129");
}
#endregion
#region AIOMessage
static void showAIOMessage()
{
Console.WriteLine("");
Console.WriteLine("For AIO");
Console.WriteLine("-------");
Console.WriteLine("Run AIO_all_channels_loopback.cs, please input 130");
Console.WriteLine("Run AIO_one_channel_loopback.cs, please input 131");
Console.WriteLine("Run AO_output_while_AI_streaming.cs, please input 132");
}
#endregion
#region AOMessage
static void showAOMessage()
{
Console.WriteLine("");
Console.WriteLine("For AO");
Console.WriteLine("-------");
Console.WriteLine("Run AO_write_all_channels.cs, please input 133");
Console.WriteLine("Run AO_write_one_channel.cs, please input 134");
Console.WriteLine("Run AO_waveform_generation.cs, please input 135");
}
#endregion
#region DIOMessage
static void showDIOMessage()
{
Console.WriteLine("");
Console.WriteLine("For DIO");
Console.WriteLine("-------");
Console.WriteLine("Run DIO_loopback_pins.cs, please input 140");
Console.WriteLine("Run DIO_loopback_port.cs, please input 141");
Console.WriteLine("Run DO_blinky_pins.cs, please input 142");
Console.WriteLine("Run DO_blinky_port.cs, please input 143");
Console.WriteLine("Run DO_write_pins.cs, please input 144");
Console.WriteLine("Run DO_write_port.cs, please input 145");
}
#endregion
#region I2CMessage
static void showI2CMessage()
{
Console.WriteLine("");
Console.WriteLine("For I2C");
Console.WriteLine("-------");
Console.WriteLine("Run I2C_write_read.cs, please input 30");
}
#endregion
#region SPIMessage
static void showSPIMessage()
{
Console.WriteLine("");
Console.WriteLine("For SPI");
Console.WriteLine("-------");
Console.WriteLine("Run SPI_read_and_write.cs, please input 40");
Console.WriteLine("Run SPI_write.cs, please input 41");
}
#endregion
#region UARTMessage
static void showUARTMessage()
{
Console.WriteLine("");
Console.WriteLine("For UART");
Console.WriteLine("--------");
Console.WriteLine("Run UART_read.cs, please input 50");
Console.WriteLine("Run UART_write.cs, please input 51");
}
#endregion
#region CANMessage
static void showCANMessage()
{
Console.WriteLine("");
Console.WriteLine("For CAN");
Console.WriteLine("-------");
Console.WriteLine("Run CAN_read.cs, please input 60");
Console.WriteLine("Run CAN_write.cs, please input 61");
}
#endregion
#region RTDMessage
static void showRTDMessage()
{
Console.WriteLine("");
Console.WriteLine("For RTD");
Console.WriteLine("-------");
Console.WriteLine("Run RTD_read_channel_data.cs, please input 70");
Console.WriteLine("Run RTD_read_channel_status.cs, please input 71");
Console.WriteLine("Run RTD_read_channel_data_with_logger.cs, please input 72");
}
#endregion
#region TCMessage
static void showTCMessage()
{
Console.WriteLine("");
Console.WriteLine("For ThermoCouple");
Console.WriteLine("----------------");
Console.WriteLine("Run TC_read_channel_data.cs, please input 80");
Console.WriteLine("Run TC_read_channel_status.cs, please input 81");
Console.WriteLine("Run TC_read_channel_data_with_logger.cs, please input 82");
}
#endregion
#region MotionMessage
static void showMotionMessage()
{
Console.WriteLine("");
Console.WriteLine("For motion");
Console.WriteLine("----------------");
Console.WriteLine("Run Motion_1axis_move.cs, please input 90");
Console.WriteLine("Run Motion_1axis_move_with_alarm_in.cs, please input 91");
Console.WriteLine("Run Motion_1axis_move_with_breakpoint.cs, please input 92");
Console.WriteLine("Run Motion_1axis_move_with_capture.cs, please input 93");
Console.WriteLine("Run Motion_1axis_move_with_configuration_file.cs, please input 94");
Console.WriteLine("Run Motion_1axis_move_with_inposition.cs, please input 95");
Console.WriteLine("Run Motion_1axis_move_with_S_curve_acceleration.cs, please input 96");
Console.WriteLine("Run Motion_2axis_circular_interpolation.cs, please input 97");
Console.WriteLine("Run Motion_2axis_linear_interpolation.cs, please input 98");
Console.WriteLine("Run Motion_3axis_asynchronous_move.cs, please input 99");
Console.WriteLine("Run Motion_3axis_helical_interpolation.cs, please input 100");
Console.WriteLine("Run Motion_3axis_linear_interpolation.cs, please input 101");
Console.WriteLine("Run Motion_3axis_synchronous_move.cs, please input 102");
Console.WriteLine("Run Motion_find_home.cs, please input 103");
Console.WriteLine("Run Motion_find_index.cs, please input 104");
Console.WriteLine("Run Motion_find_limit.cs, please input 105");
Console.WriteLine("Run Motion_get_logical_position.cs, please input 106");
Console.WriteLine("Run Motion_load_configuration_file.cs, please input 107");
Console.WriteLine("Run Motion_save_configuration_file.cs, please input 108");
Console.WriteLine("Run Motion_velocity_blending.cs, please input 109");
Console.WriteLine("Run Motion_velocity_blending_accerleration.cs, please input 110");
Console.WriteLine("Run Motion_position_blending.cs, please input 111");
Console.WriteLine("Run Motion_servo_on.cs, please input 112");
}
#endregion
#region RelayMessage
static void showRelayMessage()
{
Console.WriteLine("");
Console.WriteLine("For Relay");
Console.WriteLine("----------------");
Console.WriteLine("Run Relay_read_counters.cs, please input 200");
Console.WriteLine("Run Relay_set_channel.cs, please input 201");
}
#endregion
#region DriveMessage
static void showDriveMessage()
{
Console.WriteLine("");
Console.WriteLine("For Drive");
Console.WriteLine("--------");
Console.WriteLine("Run Drive_find_home.cs, please input 300");
Console.WriteLine("Run Drive_find_limit.cs, please input 301");
Console.WriteLine("Run Drive_position_blending.cs, please input 302");
Console.WriteLine("Run Drive_position_move.cs, please input 303");
Console.WriteLine("Run Drive_scan_move.cs, please input 304");
Console.WriteLine("Run Drive_servo_on.cs, please input 305");
Console.WriteLine("Run Drive_velocity_blending_acceleration.cs, please input 306");
Console.WriteLine("Run Drive_velocity_move.cs, please input 307");
}
#endregion
#region PWMMessage
static void showPWMMessage()
{
Console.WriteLine("");
Console.WriteLine("For PWM");
Console.WriteLine("--------");
Console.WriteLine("Run PWM_generate.cs, please input 400");
}
#endregion
#region CounterMessage
static void showCounterMessage()
{
Console.WriteLine("");
Console.WriteLine("For counter");
Console.WriteLine("--------");
Console.WriteLine("Run Counter_read.cs, please input 500");
}
#endregion
#region EncoderMessage
static void showEncoderMessage()
{
Console.WriteLine("");
Console.WriteLine("For encoder");
Console.WriteLine("--------");
Console.WriteLine("Run Encoder_read.cs, please input 510");
}
#endregion
#region AHRSMessage
static void showAHRSMessage()
{
Console.WriteLine("");
Console.WriteLine("For AHRS");
Console.WriteLine("--------");
Console.WriteLine("Run AHRS_getOrientation.cs, please input 600");
Console.WriteLine("Run AHRS_getAngularVelocity.cs, please input 601");
Console.WriteLine("Run AHRS_getAcceleration.cs, please input 602");
Console.WriteLine("Run AHRS_getEstimation.cs, please input 603");
}
#endregion
#region SDMessage
static void showSDMessage()
{
Console.WriteLine("");
Console.WriteLine("For SD");
Console.WriteLine("--------");
Console.WriteLine("Run SD_read.cs, please input 610");
Console.WriteLine("Run SD_read.cs, please input 611");
}
#endregion
#region DPOTMessage
static void showDPOTMessage()
{
Console.WriteLine("");
Console.WriteLine("For DPOT");
Console.WriteLine("--------");
Console.WriteLine("Run DPOT_readByChannel.cs, please input 700");
Console.WriteLine("Run DPOT_writeAllChannels.cs, please input 701");
}
#endregion
static void Main()
{
Console.WriteLine("Welcome to WPC C# driver example code.");
Console.WriteLine("Please select the product you have");
showProductMessage();
Console.WriteLine("");
Console.WriteLine("Product code: ");
int product_code = Convert.ToInt32(Console.ReadLine());
switch (product_code)
{
case 0:
Console.WriteLine("Get 0, show DeviceFinder series example code");
showDeviceFinderMessage();
break;
case 1:
Console.WriteLine("Get 1, show STEM series example code");
showSysETHMessage();
showAIMessage();
showAIOMessage();
showAOMessage();
showDIOMessage();
break;
case 2:
Console.WriteLine("Get 2, show Emotion series example code");
showSysETHMessage();
showMotionMessage();
break;
case 3:
Console.WriteLine("Get 3, show EDriveST series example code");
showSysETHMessage();
showDriveMessage();
break;
case 10:
Console.WriteLine("Get 10, show EthanA series example code");
showSysETHMessage();
showAIMessage();
showRTCAIMessage();
break;
case 11:
Console.WriteLine("Get 11, show EthanD series example code");
showSysETHMessage();
showDIOMessage();
showPWMMessage();
break;
case 12:
Console.WriteLine("Get 12, show EthanI series example code");
showSysETHMessage();
showAI24BitMessage();
break;
case 13:
Console.WriteLine("Get 13, show EthanL series example code");
showSysETHMessage();
showRelayMessage();
break;
case 14:
Console.WriteLine("Get 14, show EthanO series example code");
showSysETHMessage();
showDPOTMessage();
break;
case 15:
Console.WriteLine("Get 15, show EthanP series example code");
showSysETHMessage();
showAOMessage();
break;
case 16:
Console.WriteLine("Get 16, show EthanT series example code");
showSysETHMessage();
showTCMessage();
break;
case 17:
Console.WriteLine("Get 17, show EthanIA series example code");
showSysETHMessage();
showAI24BitMessage();
break;
case 18:
Console.WriteLine("Get 18, show EthanEXD series example code");
showSysETHMessage();
showDIOMessage();
break;
case 20:
Console.WriteLine("Get 20, show USBDAQF1AD series example code");
showSysUSBMessage();
showAIMessage();
showDIOMessage();
showI2CMessage();
showSPIMessage();
showUARTMessage();
showPWMMessage();
showCounterMessage();
showEncoderMessage();
break;
case 21:
Console.WriteLine("Get 21, show USBDAQF1AOD series example code");
showSysUSBMessage();
showAIMessage();
showAIOMessage();
showAOMessage();
showDIOMessage();
showI2CMessage();
showUARTMessage();
showPWMMessage();
showCounterMessage();
showEncoderMessage();
break;
case 22:
Console.WriteLine("Get 22, show USBDAQF1CD series example code");
showSysUSBMessage();
showDIOMessage();
showI2CMessage();
showSPIMessage();
showUARTMessage();
showCANMessage();
showPWMMessage();
showCounterMessage();
showEncoderMessage();
break;
case 23:
Console.WriteLine("Get 23, show USBDAQF1D series example code");
showSysUSBMessage();
showDIOMessage();
showI2CMessage();
showSPIMessage();
showUARTMessage();
showPWMMessage();
showCounterMessage();
showEncoderMessage();
break;
case 24:
Console.WriteLine("Get 24, show USBDAQF1DSNK series example code");
showSysUSBMessage();
showDIOMessage();
showPWMMessage();
showCounterMessage();
showEncoderMessage();
break;
case 25:
Console.WriteLine("Get 25, show USBDAQF1RD series example code");
showSysUSBMessage();
showDIOMessage();
showI2CMessage();
showSPIMessage();
showUARTMessage();
showRTDMessage();
showPWMMessage();
showCounterMessage();
showEncoderMessage();
break;
case 26:
Console.WriteLine("Get 26, show USBDAQF1TD series example code");
showSysUSBMessage();
showDIOMessage();
showI2CMessage();
showSPIMessage();
showUARTMessage();
showTCMessage();
showPWMMessage();
showCounterMessage();
showEncoderMessage();
break;
case 30:
Console.WriteLine("Get 30, show WifiDAQE3A series example code");
showSysWifiMessage();
showAIMessage();
break;
case 31:
Console.WriteLine("Get 31, show WifiDAQE3AH series example code");
showSysWifiMessage();
showAIMessage();
showAHRSMessage();
showSDMessage();
break;
case 32:
Console.WriteLine("Get 32, show WifiDAQF4A series example code");
showSysWifiMessage();
showAIMessage();
break;
default:
break;
}
Console.WriteLine("===================================================");
Console.WriteLine("example code: ");
int example_code = Convert.ToInt32(Console.ReadLine());
switch (product_code)
{
case 0:
switch (example_code)
{
#region DeviceFinder
case 0:
DeviceFinder_find_all_devices.Main();
break;
#endregion
default:
break;
}
break;
case 1:
switch (example_code)
{
#region STEM_Sys
case 1:
STEM_get_network_info.Main();
break;
case 2:
STEM_get_serial_number.Main();
break;
case 3:
STEM_hello_world.Main();
break;
case 4:
STEM_set_and_get_RTC.Main();
break;
#endregion
#region STEM_AI
case 121:
STEM_AI_continuous_multi_slot.Main();
break;
case 122:
STEM_DataLogger_AI_continuous.Main();
break;
case 123:
STEM_AI_continuous.Main();
break;
case 124:
STEM_AI_N_samples_once.Main();
break;
case 125:
STEM_AI_on_demand_in_loop.Main();
break;
case 126:
STEM_AI_on_demand_once.Main();
break;
#endregion
#region STEM_AIO
case 130:
STEM_AIO_all_channels_loopback.Main();
break;
case 131:
STEM_AIO_one_channel_loopback.Main();
break;
case 132:
STEM_AO_output_while_AI_streaming.Main();
break;
#endregion
#region STEM_AO
case 133:
STEM_AO_write_all_channels.Main();
break;
case 134:
STEM_AO_write_one_channel.Main();
break;
case 135:
STEM_AO_waveform_generation.Main();
break;
#endregion
#region STEM_DIO
case 140:
STEM_DIO_loopback_pins.Main();
break;
case 141:
STEM_DIO_loopback_port.Main();
break;
case 142:
STEM_DO_blinky_pins.Main();
break;
case 143:
STEM_DO_blinky_port.Main();
break;
case 144:
STEM_DO_write_pins.Main();
break;
case 145:
STEM_DO_write_port.Main();
break;
#endregion
default:
break;
}
break;
case 2:
switch (example_code)
{
#region Emotion_Sys
case 1:
EMotion_get_network_info.Main();
break;
case 2:
EMotion_get_serial_number.Main();
break;
case 3:
EMotion_hello_world.Main();
break;
case 4:
EMotion_set_and_get_RTC.Main();
break;
#endregion
#region Emotion_motion
case 90:
EMotion_1axis_move.Main();
break;
case 91:
EMotion_1axis_move_with_alarm_in.Main();
break;
case 92:
EMotion_1axis_move_with_breakpoint.Main();
break;
case 93:
EMotion_1axis_move_with_capture.Main();
break;
case 94:
EMotion_1axis_move_with_configuration_file.Main();
break;
case 95:
EMotion_1axis_move_with_inposition.Main();
break;
case 96:
EMotion_1axis_move_with_S_curve_acceleration.Main();
break;
case 97:
EMotion_2axis_circular_interpolation.Main();
break;
case 98:
EMotion_2axis_linear_interpolation.Main();
break;
case 99:
EMotion_3axis_asynchronous_move.Main();
break;
case 100:
EMotion_3axis_helical_interpolation.Main();
break;
case 101:
EMotion_3axis_linear_interpolation.Main();
break;
case 102:
EMotion_3axis_synchronous_move.Main();
break;
case 103:
EMotion_find_home.Main();
break;
case 104:
EMotion_find_index.Main();
break;
case 105:
EMotion_find_limit.Main();
break;
case 106:
EMotion_get_logical_position.Main();
break;
case 107:
EMotion_load_configuration_file.Main();
break;
case 108:
EMotion_save_configuration_file.Main();
break;
case 109:
EMotion_velocity_blending.Main();
break;
case 110:
EMotion_velocity_blending_accerleration.Main();
break;
case 111:
EMotion_position_blending.Main();
break;
case 112:
EMotion_servo_on.Main();
break;
#endregion
default:
break;
}
break;
case 3:
switch (example_code)
{
#region EDriveST_Sys
case 1:
EDriveST_get_network_info.Main();
break;
case 2:
EDriveST_get_serial_number.Main();
break;
case 3:
EDriveST_hello_world.Main();
break;
case 4:
EDriveST_set_and_get_RTC.Main();
break;
#endregion
#region EDriveST_Drive
case 300:
EDriveST_Drive_find_home.Main();
break;
case 301:
EDriveST_Drive_find_limit.Main();
break;
case 302:
EDriveST_Drive_position_blending.Main();
break;
case 303:
EDriveST_Drive_position_blending.Main();
break;
case 304:
EDriveST_Drive_position_move.Main();
break;
case 305:
EDriveST_Drive_scan_move.Main();
break;
case 306:
EDriveST_Drive_servo_on.Main();
break;
case 307:
EDriveST_Drive_velocity_blending_acceleration.Main();
break;
case 308:
EDriveST_Drive_velocity_move.Main();
break;
#endregion
default:
break;
}
break;
case 10:
switch (example_code)
{
#region EthanA_Sys
case 1:
EthanA_get_network_info.Main();
break;
case 2:
EthanA_get_serial_number.Main();
break;
case 3:
EthanA_hello_world.Main();
break;
case 4:
EthanA_set_and_get_RTC.Main();
break;
#endregion
#region EthanA_AI
case 121:
Console.WriteLine("It did not support");
break;
case 122:
EthanA_DataLogger_AI_continuous.Main();
break;
case 123:
EthanA_AI_continuous.Main();
break;
case 124:
EthanA_AI_N_samples_once.Main();
break;
case 125:
EthanA_AI_on_demand_in_loop.Main();
break;
case 126:
EthanA_AI_on_demand_once.Main();
break;
#endregion
#region EthanA_RTC_AI
case 127:
EthanA_RTC_trigger_AI_continuous.Main();
break;
case 128:
EthanA_RTC_trigger_AI_N_samples.Main();
break;
case 129:
EthanA_RTC_trigger_AI_on_demand.Main();
break;
#endregion
default:
break;
}
break;
case 11:
switch (example_code)
{
#region EthanD_Sys
case 1:
EthanD_get_network_info.Main();
break;
case 2:
EthanD_get_serial_number.Main();
break;
case 3:
EthanD_hello_world.Main();
break;
case 4:
EthanD_set_and_get_RTC.Main();
break;
#endregion
#region EthanD_DIO
case 140:
EthanD_DIO_loopback_pins.Main();
break;
case 141:
EthanD_DIO_loopback_port.Main();
break;
case 142:
EthanD_DO_blinky_pins.Main();
break;
case 143:
EthanD_DO_blinky_port.Main();
break;
case 144:
EthanD_DO_write_pins.Main();
break;
case 145:
EthanD_DO_write_port.Main();
break;
#endregion
#region EthanD_PWM
case 400:
EthanD_PWM_generate.Main();
break;
#endregion
default:
break;
}
break;
case 12:
switch (example_code)
{
#region EthanI_Sys
case 1:
EthanI_get_network_info.Main();
break;
case 2:
EthanI_get_serial_number.Main();
break;
case 3:
EthanI_hello_world.Main();
break;
case 4:
EthanI_set_and_get_RTC.Main();
break;
#endregion
#region EthanI_AI24Bit
case 120:
EthanI_AI_on_demand_once.Main();
break;
#endregion
default:
break;
}
break;
case 13:
switch (example_code)
{
#region EthanL_Sys
case 1:
EthanL_get_network_info.Main();
break;
case 2:
EthanL_get_serial_number.Main();
break;
case 3:
EthanL_hello_world.Main();
break;
case 4:
EthanL_set_and_get_RTC.Main();
break;
#endregion
#region EthanL_Relay
case 200:
EthanL_Relay_read_counters.Main();
break;
case 201:
EthanL_Relay_set_channel.Main();
break;
#endregion
default:
break;
}
break;
case 14:
switch (example_code)