-
Notifications
You must be signed in to change notification settings - Fork 9
/
patch
2303 lines (2264 loc) · 113 KB
/
patch
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
--- ./niScope.py (original)
+++ ./niScope.py (refactored)
@@ -1,3 +1,8 @@
+from __future__ import division
+from __future__ import print_function
+from builtins import str
+from builtins import object
+from past.utils import old_div
__all__ = []
from ordered_symbols import *
@@ -22,10 +27,10 @@
lib = util.find_library(libname)
if lib is None:
if os.name == 'posix':
- print 'libniScope_32.so not found, is NI-SCOPE installed?'
+ print('libniScope_32.so not found, is NI-SCOPE installed?')
raise ImportError
if os.name == 'nt':
- print 'niScope.dll not found'
+ print('niScope.dll not found')
raise ImportError
if os.name == 'posix':
libniScope = ctypes.cdll.LoadLibrary(lib)
@@ -43,8 +48,8 @@
func = getattr(libniScope, funcname)
new_args = []
for a in args:
- if isinstance(a, unicode):
- print name, 'argument', a, 'is unicode'
+ if isinstance(a, str):
+ print(name, 'argument', a, 'is unicode')
new_args.append(str(a))
else:
new_args.append(a)
@@ -381,7 +386,7 @@
"""
attrType = {float: ViReal64,
int: ViInt32,
- long: ViInt32,
+ int: ViInt32,
bool: ViBoolean,
Scope: ViSession,
str: ViString,
@@ -399,7 +404,7 @@
"""
attrType = {float: ViReal64,
int: ViInt32,
- long: ViInt32,
+ int: ViInt32,
bool: ViBoolean,
Scope: ViSession,
str: ViString,
@@ -429,7 +434,7 @@
samplesPerRecord = buf.shape[0]
numberOfRecords = buf.shape[1]
if numberOfRecords < numAcquiredWaveforms * numberOfChannels:
- self.FetchNumberRecords = numberOfRecords / numberOfChannels
+ self.FetchNumberRecords = old_div(numberOfRecords, numberOfChannels)
assert numAcquiredWaveforms == numberOfRecords
assert self.RecordLength >= samplesPerRecord
@@ -565,12 +570,12 @@
IVI_MAX_MESSAGE_LEN = 255
-class Acquisition:
+class Acquisition(object):
def __iter__(self):
- class iterator:
+ class iterator(object):
def __iter__(self):
pass
- def next(self):
+ def __next__(self):
return self.scope.Fetch()
--- ./niScopeTypes.py (original)
+++ ./niScopeTypes.py (refactored)
@@ -1,3 +1,4 @@
+from builtins import object
import ctypes
@@ -65,91 +66,91 @@
# d#efine _VI_FUNCH __stdcall
# coupling
-IVISCOPE_VAL_TRIGGER_COUPLING_SPECIFIC_EXT_BASE = 1000L
-
-
-class COUPLING:
- AC = 0L
- DC = 1L
- GND = 2L
- HF_REJECT = 3L
- AC_PLUS_HF_REJECT = 1001L
+IVISCOPE_VAL_TRIGGER_COUPLING_SPECIFIC_EXT_BASE = 1000
+
+
+class COUPLING(object):
+ AC = 0
+ DC = 1
+ GND = 2
+ HF_REJECT = 3
+ AC_PLUS_HF_REJECT = 1001
# slope
-class SLOPE:
- POSITIVE = 1L
- NEGATIVE = 0L
+class SLOPE(object):
+ POSITIVE = 1
+ NEGATIVE = 0
# Trigger window
-class TRIGGER_WINDOW:
+class TRIGGER_WINDOW(object):
ENTERING_WINDOW = 0
LEAVING_WINDOW = 1
-IVISCOPE_VAL_ACQUISITION_TYPE_CLASS_EXT_BASE = 100L
-IVISCOPE_VAL_ACQUISITION_TYPE_SPECIFIC_EXT_BASE = 1000L
-
-
-class VAL:
- NORMAL = 0L
+IVISCOPE_VAL_ACQUISITION_TYPE_CLASS_EXT_BASE = 100
+IVISCOPE_VAL_ACQUISITION_TYPE_SPECIFIC_EXT_BASE = 1000
+
+
+class VAL(object):
+ NORMAL = 0
FLEXRES = (IVISCOPE_VAL_ACQUISITION_TYPE_SPECIFIC_EXT_BASE + 1)
DDC = (IVISCOPE_VAL_ACQUISITION_TYPE_SPECIFIC_EXT_BASE + 2)
-class ACQ_STATUS:
- COMPLETE = 1L
- IN_PROGRESS = 0L
- UNKOWN = -1L
+class ACQ_STATUS(object):
+ COMPLETE = 1
+ IN_PROGRESS = 0
+ UNKOWN = -1
#/*- Defined values for NISCOPE_ATTR_TV_TRIGGER_SIGNAL_FORMAT -*/
-IVISCOPE_VAL_TV_SIGNAL_FORMAT_SPECIFIC_EXT_BASE = 1000L
+IVISCOPE_VAL_TV_SIGNAL_FORMAT_SPECIFIC_EXT_BASE = 1000
#// SDTV/EDTV
-class TV_TRIGGER_SIGNAL_FORMAT:
- VAL_NTSC = 1L
- VAL_PAL = 2L
- VAL_SECAM = 3L
- VAL_M_PAL = 1001L
- VAL_480I_59_94_FIELDS_PER_SECOND = 1010L
- VAL_480I_60_FIELDS_PER_SECOND = 1011L
- VAL_480P_59_94_FRAMES_PER_SECOND = 1015L
- VAL_480P_60_FRAMES_PER_SECOND = 1016L
- VAL_576I_50_FIELDS_PER_SECOND = 1020L
- VAL_576P_50_FRAMES_PER_SECOND = 1025L
- VAL_720P_50_FRAMES_PER_SECOND = 1031L
- VAL_720P_59_94_FRAMES_PER_SECOND = 1032L
- VAL_720P_60_FRAMES_PER_SECOND = 1033L
- VAL_1080I_50_FIELDS_PER_SECOND = 1040L
- VAL_1080I_59_94_FIELDS_PER_SECON = 1041L
- VAL_1080I_60_FIELDS_PER_SECOND = 1042L
- VAL_1080P_24_FRAMES_PER_SECOND = 1045L
+class TV_TRIGGER_SIGNAL_FORMAT(object):
+ VAL_NTSC = 1
+ VAL_PAL = 2
+ VAL_SECAM = 3
+ VAL_M_PAL = 1001
+ VAL_480I_59_94_FIELDS_PER_SECOND = 1010
+ VAL_480I_60_FIELDS_PER_SECOND = 1011
+ VAL_480P_59_94_FRAMES_PER_SECOND = 1015
+ VAL_480P_60_FRAMES_PER_SECOND = 1016
+ VAL_576I_50_FIELDS_PER_SECOND = 1020
+ VAL_576P_50_FRAMES_PER_SECOND = 1025
+ VAL_720P_50_FRAMES_PER_SECOND = 1031
+ VAL_720P_59_94_FRAMES_PER_SECOND = 1032
+ VAL_720P_60_FRAMES_PER_SECOND = 1033
+ VAL_1080I_50_FIELDS_PER_SECOND = 1040
+ VAL_1080I_59_94_FIELDS_PER_SECON = 1041
+ VAL_1080I_60_FIELDS_PER_SECOND = 1042
+ VAL_1080P_24_FRAMES_PER_SECOND = 1045
#/*- Defined values for NISCOPE_ATTR_TV_TRIGGER_EVENT -*/
-class TV_TRIGGER_EVENT:
- FIELD1 = 1L
- FIELD2 = 2L
- ANY_FIELD = 3L
- ANY_LINE = 4L
- LINE_NUMBER = 5L
+class TV_TRIGGER_EVENT(object):
+ FIELD1 = 1
+ FIELD2 = 2
+ ANY_FIELD = 3
+ ANY_LINE = 4
+ LINE_NUMBER = 5
#/*- Defined values for NISCOPE_ATTR_TV_TRIGGER_POLARITY -*/
-class TV_TRIGGER_POLARITY:
- POSITIVE = 1L
- NEGATIVE = 2L
+class TV_TRIGGER_POLARITY(object):
+ POSITIVE = 1
+ NEGATIVE = 2
#/*- NISCOPE_ATTR_TRIGGER_SOURCE Values -*/
-class TRIGGER_SOURCE:
+class TRIGGER_SOURCE(object):
"""
Trigger source types.
@@ -184,11 +185,11 @@
#/****************************************************************************
#*------------------------ Error And Completion Codes ----------------------*
# ****************************************************************************/
-class ERROR_BASE:
+class ERROR_BASE(object):
#/*= Error base constantsvistatype.h========= */
- _VI_ERROR = (-2147483647L - 1) # /* 0x80000000 */ visatype.h
+ _VI_ERROR = (-2147483647 - 1) # /* 0x80000000 */ visatype.h
#/*= Error base constantsivi.h========= */
- IVI_STATUS_CODE_BASE = 0x3FFA0000L
+ IVI_STATUS_CODE_BASE = 0x3FFA0000
IVI_WARN_BASE = IVI_STATUS_CODE_BASE
IVI_CROSS_CLASS_WARN_BASE = IVI_WARN_BASE + 0x1000
IVI_CLASS_WARN_BASE = IVI_WARN_BASE + 0x2000
@@ -204,82 +205,82 @@
IVI_NI_ERROR_BASE = IVI_ERROR_BASE + 0x6000
IVI_SHARED_COMPONENT_ERROR_BASE = IVI_ERROR_BASE + 0x1000
#/*= Error base constantsiviscope.h========= */
- IVISCOPE_WARN_INVALID_WFM_ELEMENT = IVI_CLASS_WARN_BASE + 0x0001L
- IVISCOPE_ERROR_CHANNEL_NOT_ENABLED = IVI_CLASS_ERROR_BASE + 0x0001L
- IVISCOPE_ERROR_UNABLE_TO_PERFORM_MEASUREMENT = IVI_CLASS_ERROR_BASE + 0x0002L
- IVISCOPE_ERROR_MAX_TIME_EXCEEDED = IVI_CLASS_ERROR_BASE + 0x0003L
+ IVISCOPE_WARN_INVALID_WFM_ELEMENT = IVI_CLASS_WARN_BASE + 0x0001
+ IVISCOPE_ERROR_CHANNEL_NOT_ENABLED = IVI_CLASS_ERROR_BASE + 0x0001
+ IVISCOPE_ERROR_UNABLE_TO_PERFORM_MEASUREMENT = IVI_CLASS_ERROR_BASE + 0x0002
+ IVISCOPE_ERROR_MAX_TIME_EXCEEDED = IVI_CLASS_ERROR_BASE + 0x0003
ERRORS = {
- ERROR_BASE.IVI_CLASS_WARN_BASE + 0x0001L: "IVISCOPE_WARN_INVALID_WFM_ELEMENT",
- ERROR_BASE.IVI_CLASS_ERROR_BASE + 0x0001L : "IVISCOPE_ERROR_CHANNEL_NOT_ENABLED",
- ERROR_BASE.IVI_CLASS_ERROR_BASE + 0x0002L : "IVISCOPE_ERROR_UNABLE_TO_PERFORM_MEASUREMENT ",
- ERROR_BASE.IVI_CLASS_ERROR_BASE + 0x0003L : "IVISCOPE_ERROR_MAX_TIME_EXCEEDED",
- ERROR_BASE.IVI_CLASS_ERROR_BASE + 0x0004L : "IVISCOPE_ERROR_INVALID_ACQ_TYPE",
+ ERROR_BASE.IVI_CLASS_WARN_BASE + 0x0001: "IVISCOPE_WARN_INVALID_WFM_ELEMENT",
+ ERROR_BASE.IVI_CLASS_ERROR_BASE + 0x0001 : "IVISCOPE_ERROR_CHANNEL_NOT_ENABLED",
+ ERROR_BASE.IVI_CLASS_ERROR_BASE + 0x0002 : "IVISCOPE_ERROR_UNABLE_TO_PERFORM_MEASUREMENT ",
+ ERROR_BASE.IVI_CLASS_ERROR_BASE + 0x0003 : "IVISCOPE_ERROR_MAX_TIME_EXCEEDED",
+ ERROR_BASE.IVI_CLASS_ERROR_BASE + 0x0004 : "IVISCOPE_ERROR_INVALID_ACQ_TYPE",
ERROR_BASE.IVISCOPE_WARN_INVALID_WFM_ELEMENT: "WARN_INVALID_WFM_ELEMENT",
- ERROR_BASE.IVI_SPECIFIC_WARN_BASE + 0x001L: "WARN_HEATER_CIRCUIT_TEMPERATURE",
- ERROR_BASE.IVI_SPECIFIC_WARN_BASE + 0x002L: "WARN_INVALID_DATA",
- ERROR_BASE.IVI_SPECIFIC_WARN_BASE + 0x003L: "WARN_CHANNEL_OVERLOAD",
- ERROR_BASE.IVI_SPECIFIC_WARN_BASE + 0x004L: "WARN_AUTOSETUP_NO_SIGNAL",
- ERROR_BASE.IVI_SPECIFIC_WARN_BASE + 0x005L: "WARN_PLL_UNLOCKED",
- ERROR_BASE.IVI_SPECIFIC_WARN_BASE + 0x006L: "WARN_PLL_UNLOCKED_AND_ADC_OVERLOAD",
- ERROR_BASE.IVI_SPECIFIC_WARN_BASE + 0x007L: "WARN_TIMESTAMP_ROLLOVER",
- ERROR_BASE.IVI_SPECIFIC_WARN_BASE + 0x008L: "WARN_ADC_OVERLOAD",
+ ERROR_BASE.IVI_SPECIFIC_WARN_BASE + 0x001: "WARN_HEATER_CIRCUIT_TEMPERATURE",
+ ERROR_BASE.IVI_SPECIFIC_WARN_BASE + 0x002: "WARN_INVALID_DATA",
+ ERROR_BASE.IVI_SPECIFIC_WARN_BASE + 0x003: "WARN_CHANNEL_OVERLOAD",
+ ERROR_BASE.IVI_SPECIFIC_WARN_BASE + 0x004: "WARN_AUTOSETUP_NO_SIGNAL",
+ ERROR_BASE.IVI_SPECIFIC_WARN_BASE + 0x005: "WARN_PLL_UNLOCKED",
+ ERROR_BASE.IVI_SPECIFIC_WARN_BASE + 0x006: "WARN_PLL_UNLOCKED_AND_ADC_OVERLOAD",
+ ERROR_BASE.IVI_SPECIFIC_WARN_BASE + 0x007: "WARN_TIMESTAMP_ROLLOVER",
+ ERROR_BASE.IVI_SPECIFIC_WARN_BASE + 0x008: "WARN_ADC_OVERLOAD",
ERROR_BASE.IVISCOPE_ERROR_CHANNEL_NOT_ENABLED: "ERROR_CHANNEL_NOT_ENABLED",
ERROR_BASE.IVISCOPE_ERROR_UNABLE_TO_PERFORM_MEASUREMENT: "ERROR_UNABLE_TO_PERFORM_MEASUREMENT",
ERROR_BASE.IVISCOPE_ERROR_MAX_TIME_EXCEEDED: "ERROR_MAX_TIME_EXCEEDED",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x001L: "ERROR_SOFTWARE_FAILURE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x002L: "ERROR_HARDWARE_FAILURE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x003L: "ERROR_INSUFFICIENT_MEMORY",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x004L: "ERROR_INVALID_DATA",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x005L: "ERROR_GAIN_CAL_FAILURE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x006L: "ERROR_SINE_CAL_FAILURE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x007L: "ERROR_LIN_CAL_FAILURE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x008L: "ERROR_ADC_CAL_FAILURE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x009L: "ERROR_ACQ_IN_PROGRESS",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x00AL: "ERROR_DATA_NOT_AVAILABLE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x00BL: "ERROR_HEATER_CIRCUIT_CAL_FAILURE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x00CL: "ERROR_FLEXRES_CONFIG_CORRUPT",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x00DL: "ERROR_GAIN_OFFSET_CAL_FAILURE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x00EL: "ERROR_CREATE_THREAD",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x00FL: "ERROR_WRONG_PASSWORD",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x010L: "ERROR_INVALID_GAIN",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x013L: "ERROR_INVALID_CAL_SESSION",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x014L: "ERROR_BAD_MEASUREMENT",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x015L: "ERROR_BUFFER_NOT_ACQUIRED",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x016L: "ERROR_TRIGGER_HAS_NOT_OCCURRED",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x017L: "ERROR_ILLEGAL_RELATIVE_TO",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x018L: "ERROR_DATA_OVERWRITTEN",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x01AL: "ERROR_INVALID_TIMESTAMP_EVENT_TAG",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x01BL: "ERROR_TIMEOUT_TRANSFERRING_TIMESTAMPS",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x01CL: "ERROR_TIMEOUT_CHECKING_STATUS",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x01DL: "ERROR_TIMEOUT_TRANSFERRING_DATA",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x01EL: "ERROR_PLL_FAILURE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x01FL: "ERROR_PAR_TO_SER_CONV_FAILURE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x020L: "ERROR_DMA_CONFIG_ERROR",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x021L: "ERROR_ILLEGAL_USER_OFFSET",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x022L: "ERROR_NOT_A_SCOPE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x023L: "ERROR_TIMEOUT_CLEARING_TIO",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x024L: "ERROR_RIS_DID_NOT_COMPLETE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x025L: "ERROR_INVALID_RIS_METHOD",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x026L: "ERROR_INVALID_RIS_NUM_AVERAGES",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x027L: "ERROR_ILLEGAL_DATATYPE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x028L: "ERROR_ATTRIBUTES_DIFFER_BY_CHANNEL",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x029L: "ERROR_TRIGGER_DELAY_INVALID_WITH_RIS",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x02AL: "ERROR_INITIATE_NOT_CALLED",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x02BL: "ERROR_INVALID_FUNCTION_USE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x02CL: "ERROR_HOLDOFF_DELAY_NONZERO",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x02DL: "ERROR_CHANNEL_NAME_TOO_LONG",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x02EL: "ERROR_DIGITIZER_ALREADY_IN_USE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0X02FL: "ERROR_SIM_MODEL_NOT_SUPPORTED",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0X030L: "ERROR_SPECIFICDLL_LOAD_FAILURE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0X031L: "ERROR_SPECIFICDLL_GET_ADDRESS_FAILURE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0X032L: "ERROR_TRIGGER_TYPE_INVALID",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0X033L: "ERROR_INVALID_FETCH_PARAMETERS",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0X034L: "ERROR_EXT_CAL_NOT_COMPLETE",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0X035L: "ERROR_EXT_CAL_CONSTS_INVALID",
- ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0X036L: "ERROR_INVALID_NUM_WAVEFORMS",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x001: "ERROR_SOFTWARE_FAILURE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x002: "ERROR_HARDWARE_FAILURE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x003: "ERROR_INSUFFICIENT_MEMORY",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x004: "ERROR_INVALID_DATA",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x005: "ERROR_GAIN_CAL_FAILURE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x006: "ERROR_SINE_CAL_FAILURE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x007: "ERROR_LIN_CAL_FAILURE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x008: "ERROR_ADC_CAL_FAILURE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x009: "ERROR_ACQ_IN_PROGRESS",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x00A: "ERROR_DATA_NOT_AVAILABLE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x00B: "ERROR_HEATER_CIRCUIT_CAL_FAILURE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x00C: "ERROR_FLEXRES_CONFIG_CORRUPT",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x00D: "ERROR_GAIN_OFFSET_CAL_FAILURE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x00E: "ERROR_CREATE_THREAD",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x00F: "ERROR_WRONG_PASSWORD",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x010: "ERROR_INVALID_GAIN",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x013: "ERROR_INVALID_CAL_SESSION",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x014: "ERROR_BAD_MEASUREMENT",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x015: "ERROR_BUFFER_NOT_ACQUIRED",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x016: "ERROR_TRIGGER_HAS_NOT_OCCURRED",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x017: "ERROR_ILLEGAL_RELATIVE_TO",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x018: "ERROR_DATA_OVERWRITTEN",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x01A: "ERROR_INVALID_TIMESTAMP_EVENT_TAG",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x01B: "ERROR_TIMEOUT_TRANSFERRING_TIMESTAMPS",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x01C: "ERROR_TIMEOUT_CHECKING_STATUS",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x01D: "ERROR_TIMEOUT_TRANSFERRING_DATA",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x01E: "ERROR_PLL_FAILURE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x01F: "ERROR_PAR_TO_SER_CONV_FAILURE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x020: "ERROR_DMA_CONFIG_ERROR",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x021: "ERROR_ILLEGAL_USER_OFFSET",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x022: "ERROR_NOT_A_SCOPE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x023: "ERROR_TIMEOUT_CLEARING_TIO",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x024: "ERROR_RIS_DID_NOT_COMPLETE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x025: "ERROR_INVALID_RIS_METHOD",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x026: "ERROR_INVALID_RIS_NUM_AVERAGES",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x027: "ERROR_ILLEGAL_DATATYPE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x028: "ERROR_ATTRIBUTES_DIFFER_BY_CHANNEL",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x029: "ERROR_TRIGGER_DELAY_INVALID_WITH_RIS",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x02A: "ERROR_INITIATE_NOT_CALLED",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x02B: "ERROR_INVALID_FUNCTION_USE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x02C: "ERROR_HOLDOFF_DELAY_NONZERO",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x02D: "ERROR_CHANNEL_NAME_TOO_LONG",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0x02E: "ERROR_DIGITIZER_ALREADY_IN_USE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0X02F: "ERROR_SIM_MODEL_NOT_SUPPORTED",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0X030: "ERROR_SPECIFICDLL_LOAD_FAILURE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0X031: "ERROR_SPECIFICDLL_GET_ADDRESS_FAILURE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0X032: "ERROR_TRIGGER_TYPE_INVALID",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0X033: "ERROR_INVALID_FETCH_PARAMETERS",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0X034: "ERROR_EXT_CAL_NOT_COMPLETE",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0X035: "ERROR_EXT_CAL_CONSTS_INVALID",
+ ERROR_BASE.IVI_SPECIFIC_ERROR_BASE + 0X036: "ERROR_INVALID_NUM_WAVEFORMS",
0xBFFA1190: "ERROR_INVALID_SESSION ",
# (_VI_ERROR+0x3FFF0000L) #/* BFFF0000, */
-1073807360: "VI_ERROR_SYSTEM_ERROR ",
--- ./ordered_symbols.py (original)
+++ ./ordered_symbols.py (refactored)
@@ -16,16 +16,16 @@
IVI_ATTR_SPECIFIC_DRIVER_REVISION = (IVI_ENGINE_PUBLIC_ATTR_BASE + 551)
NISCOPE_ATTR_SPECIFIC_DRIVER_REVISION = IVI_ATTR_SPECIFIC_DRIVER_REVISION
IVI_VIREAL64_MAX = 1.79769313486231570814527423732e+308
-IVI_VAL_NOT_USER_WRITABLE = (1L << 4)
-IVI_VAL_NOT_USER_READABLE = (1L << 3)
-VI_TMO_INFINITE = (0xFFFFFFFFL)
+IVI_VAL_NOT_USER_WRITABLE = (1 << 4)
+IVI_VAL_NOT_USER_READABLE = (1 << 3)
+VI_TMO_INFINITE = (0xFFFFFFFF)
IVI_VAL_MAX_TIME_INFINITE = VI_TMO_INFINITE
-VI_TMO_IMMEDIATE = (0L)
+VI_TMO_IMMEDIATE = (0)
IVI_VAL_MAX_TIME_IMMEDIATE = VI_TMO_IMMEDIATE
VI_NULL = (0)
IVI_MAX_MESSAGE_LEN = 255
-IVI_STATUS_CODE_BASE = 0x3FFA0000L
-_VI_ERROR = (-2147483647L - 1)
+IVI_STATUS_CODE_BASE = 0x3FFA0000
+_VI_ERROR = (-2147483647 - 1)
IVI_ERROR_BASE = (_VI_ERROR + IVI_STATUS_CODE_BASE)
IVI_NI_ERROR_BASE = (IVI_ERROR_BASE + 0x6000)
IVI_WARN_BASE = (IVI_STATUS_CODE_BASE)
@@ -245,14 +245,14 @@
IVI_NI_WARN_BASE = (IVI_WARN_BASE + 0x6000)
IVI_RANGE_TABLE_END_STRING = ((-1))
IVI_RANGE_TABLE_LAST_ENTRY = VI_NULL, VI_NULL, VI_NULL, IVI_RANGE_TABLE_END_STRING, VI_NULL
-IVISCOPE_ATTR_AC_LINE_TRIGGER_SLOPE = (IVI_CLASS_PUBLIC_ATTR_BASE + 701L)
-IVISCOPE_ATTR_ACQUISITION_START_TIME = (IVI_CLASS_PUBLIC_ATTR_BASE + 109L)
-IVISCOPE_ATTR_ACQUISITION_TYPE = (IVI_CLASS_PUBLIC_ATTR_BASE + 101L)
+IVISCOPE_ATTR_AC_LINE_TRIGGER_SLOPE = (IVI_CLASS_PUBLIC_ATTR_BASE + 701)
+IVISCOPE_ATTR_ACQUISITION_START_TIME = (IVI_CLASS_PUBLIC_ATTR_BASE + 109)
+IVISCOPE_ATTR_ACQUISITION_TYPE = (IVI_CLASS_PUBLIC_ATTR_BASE + 101)
IVISCOPE_ATTR_ATTRIBUTE_CAPABILITIES = IVI_ATTR_ATTRIBUTE_CAPABILITIES
-IVISCOPE_ATTR_BANDWIDTH = (IVI_CLASS_PUBLIC_ATTR_BASE + 6L)
+IVISCOPE_ATTR_BANDWIDTH = (IVI_CLASS_PUBLIC_ATTR_BASE + 6)
IVISCOPE_ATTR_CACHE = IVI_ATTR_CACHE
IVISCOPE_ATTR_CHANNEL_COUNT = IVI_ATTR_CHANNEL_COUNT
-IVISCOPE_ATTR_CHANNEL_ENABLED = (IVI_CLASS_PUBLIC_ATTR_BASE + 5L)
+IVISCOPE_ATTR_CHANNEL_ENABLED = (IVI_CLASS_PUBLIC_ATTR_BASE + 5)
IVISCOPE_ATTR_CLASS_DRIVER_CLASS_SPEC_MAJOR_VERSION = IVI_ATTR_CLASS_DRIVER_CLASS_SPEC_MAJOR_VERSION
IVISCOPE_ATTR_CLASS_DRIVER_CLASS_SPEC_MINOR_VERSION = IVI_ATTR_CLASS_DRIVER_CLASS_SPEC_MINOR_VERSION
IVISCOPE_ATTR_CLASS_DRIVER_DESCRIPTION = IVI_ATTR_CLASS_DRIVER_DESCRIPTION
@@ -274,46 +274,46 @@
IVISCOPE_ATTR_ENGINE_REVISION = IVI_ATTR_ENGINE_REVISION
IVISCOPE_ATTR_ERROR_ELABORATION = IVI_ATTR_ERROR_ELABORATION
IVISCOPE_ATTR_FUNCTION_CAPABILITIES = IVI_ATTR_FUNCTION_CAPABILITIES
-IVISCOPE_ATTR_GLITCH_CONDITION = (IVI_CLASS_PUBLIC_ATTR_BASE + 403L)
-IVISCOPE_ATTR_GLITCH_POLARITY = (IVI_CLASS_PUBLIC_ATTR_BASE + 402L)
-IVISCOPE_ATTR_GLITCH_WIDTH = (IVI_CLASS_PUBLIC_ATTR_BASE + 401L)
+IVISCOPE_ATTR_GLITCH_CONDITION = (IVI_CLASS_PUBLIC_ATTR_BASE + 403)
+IVISCOPE_ATTR_GLITCH_POLARITY = (IVI_CLASS_PUBLIC_ATTR_BASE + 402)
+IVISCOPE_ATTR_GLITCH_WIDTH = (IVI_CLASS_PUBLIC_ATTR_BASE + 401)
IVISCOPE_ATTR_GROUP_CAPABILITIES = IVI_ATTR_GROUP_CAPABILITIES
-IVISCOPE_ATTR_HORZ_MIN_NUM_PTS = (IVI_CLASS_PUBLIC_ATTR_BASE + 9L)
-IVISCOPE_ATTR_HORZ_RECORD_LENGTH = (IVI_CLASS_PUBLIC_ATTR_BASE + 8L)
-IVISCOPE_ATTR_HORZ_RECORD_REF_POSITION = (IVI_CLASS_PUBLIC_ATTR_BASE + 11L)
-IVISCOPE_ATTR_HORZ_SAMPLE_RATE = (IVI_CLASS_PUBLIC_ATTR_BASE + 10L)
-IVISCOPE_ATTR_HORZ_TIME_PER_RECORD = (IVI_CLASS_PUBLIC_ATTR_BASE + 7L)
-IVISCOPE_ATTR_INITIATE_CONTINUOUS = (IVI_CLASS_PUBLIC_ATTR_BASE + 107L)
-IVISCOPE_ATTR_INPUT_IMPEDANCE = (IVI_CLASS_PUBLIC_ATTR_BASE + 103L)
+IVISCOPE_ATTR_HORZ_MIN_NUM_PTS = (IVI_CLASS_PUBLIC_ATTR_BASE + 9)
+IVISCOPE_ATTR_HORZ_RECORD_LENGTH = (IVI_CLASS_PUBLIC_ATTR_BASE + 8)
+IVISCOPE_ATTR_HORZ_RECORD_REF_POSITION = (IVI_CLASS_PUBLIC_ATTR_BASE + 11)
+IVISCOPE_ATTR_HORZ_SAMPLE_RATE = (IVI_CLASS_PUBLIC_ATTR_BASE + 10)
+IVISCOPE_ATTR_HORZ_TIME_PER_RECORD = (IVI_CLASS_PUBLIC_ATTR_BASE + 7)
+IVISCOPE_ATTR_INITIATE_CONTINUOUS = (IVI_CLASS_PUBLIC_ATTR_BASE + 107)
+IVISCOPE_ATTR_INPUT_IMPEDANCE = (IVI_CLASS_PUBLIC_ATTR_BASE + 103)
IVISCOPE_ATTR_INSTRUMENT_FIRMWARE_REVISION = IVI_ATTR_INSTRUMENT_FIRMWARE_REVISION
IVISCOPE_ATTR_INSTRUMENT_MANUFACTURER = IVI_ATTR_INSTRUMENT_MANUFACTURER
IVISCOPE_ATTR_INSTRUMENT_MODEL = IVI_ATTR_INSTRUMENT_MODEL
IVISCOPE_ATTR_INTERCHANGE_CHECK = IVI_ATTR_INTERCHANGE_CHECK
-IVISCOPE_ATTR_INTERPOLATION = (IVI_CLASS_PUBLIC_ATTR_BASE + 19L)
+IVISCOPE_ATTR_INTERPOLATION = (IVI_CLASS_PUBLIC_ATTR_BASE + 19)
IVISCOPE_ATTR_IO_RESOURCE_DESCRIPTOR = IVI_ATTR_IO_RESOURCE_DESCRIPTOR
IVISCOPE_ATTR_IO_SESSION = IVI_ATTR_IO_SESSION
IVISCOPE_ATTR_IO_SESSION_TYPE = IVI_ATTR_IO_SESSION_TYPE
IVISCOPE_ATTR_LOGICAL_NAME = IVI_ATTR_LOGICAL_NAME
-IVISCOPE_ATTR_MAX_INPUT_FREQUENCY = (IVI_CLASS_PUBLIC_ATTR_BASE + 6L)
-IVISCOPE_ATTR_MEAS_HIGH_REF = (IVI_CLASS_PUBLIC_ATTR_BASE + 607L)
-IVISCOPE_ATTR_MEAS_LOW_REF = (IVI_CLASS_PUBLIC_ATTR_BASE + 608L)
-IVISCOPE_ATTR_MEAS_MID_REF = (IVI_CLASS_PUBLIC_ATTR_BASE + 609L)
+IVISCOPE_ATTR_MAX_INPUT_FREQUENCY = (IVI_CLASS_PUBLIC_ATTR_BASE + 6)
+IVISCOPE_ATTR_MEAS_HIGH_REF = (IVI_CLASS_PUBLIC_ATTR_BASE + 607)
+IVISCOPE_ATTR_MEAS_LOW_REF = (IVI_CLASS_PUBLIC_ATTR_BASE + 608)
+IVISCOPE_ATTR_MEAS_MID_REF = (IVI_CLASS_PUBLIC_ATTR_BASE + 609)
IVISCOPE_ATTR_MODULE_PATHNAME = IVI_ATTR_MODULE_PATHNAME
-IVISCOPE_ATTR_NUM_AVERAGES = (IVI_CLASS_PUBLIC_ATTR_BASE + 104L)
+IVISCOPE_ATTR_NUM_AVERAGES = (IVI_CLASS_PUBLIC_ATTR_BASE + 104)
IVISCOPE_ATTR_NUM_CHANNELS = IVI_ATTR_NUM_CHANNELS
-IVISCOPE_ATTR_NUM_ENVELOPES = (IVI_CLASS_PUBLIC_ATTR_BASE + 105L)
+IVISCOPE_ATTR_NUM_ENVELOPES = (IVI_CLASS_PUBLIC_ATTR_BASE + 105)
IVISCOPE_ATTR_PRIMARY_ERROR = IVI_ATTR_PRIMARY_ERROR
-IVISCOPE_ATTR_PROBE_ATTENUATION = (IVI_CLASS_PUBLIC_ATTR_BASE + 4L)
-IVISCOPE_ATTR_PROBE_SENSE_VALUE = (IVI_CLASS_PUBLIC_ATTR_BASE + 108L)
+IVISCOPE_ATTR_PROBE_ATTENUATION = (IVI_CLASS_PUBLIC_ATTR_BASE + 4)
+IVISCOPE_ATTR_PROBE_SENSE_VALUE = (IVI_CLASS_PUBLIC_ATTR_BASE + 108)
IVISCOPE_ATTR_QUERY_INSTR_STATUS = IVI_ATTR_QUERY_INSTR_STATUS
IVISCOPE_ATTR_QUERY_INSTRUMENT_STATUS = IVI_ATTR_QUERY_INSTRUMENT_STATUS
IVISCOPE_ATTR_RANGE_CHECK = IVI_ATTR_RANGE_CHECK
IVISCOPE_ATTR_RECORD_COERCIONS = IVI_ATTR_RECORD_COERCIONS
IVISCOPE_ATTR_RESOURCE_DESCRIPTOR = IVI_ATTR_RESOURCE_DESCRIPTOR
-IVISCOPE_ATTR_RUNT_HIGH_THRESHOLD = (IVI_CLASS_PUBLIC_ATTR_BASE + 301L)
-IVISCOPE_ATTR_RUNT_LOW_THRESHOLD = (IVI_CLASS_PUBLIC_ATTR_BASE + 302L)
-IVISCOPE_ATTR_RUNT_POLARITY = (IVI_CLASS_PUBLIC_ATTR_BASE + 303L)
-IVISCOPE_ATTR_SAMPLE_MODE = (IVI_CLASS_PUBLIC_ATTR_BASE + 106L)
+IVISCOPE_ATTR_RUNT_HIGH_THRESHOLD = (IVI_CLASS_PUBLIC_ATTR_BASE + 301)
+IVISCOPE_ATTR_RUNT_LOW_THRESHOLD = (IVI_CLASS_PUBLIC_ATTR_BASE + 302)
+IVISCOPE_ATTR_RUNT_POLARITY = (IVI_CLASS_PUBLIC_ATTR_BASE + 303)
+IVISCOPE_ATTR_SAMPLE_MODE = (IVI_CLASS_PUBLIC_ATTR_BASE + 106)
IVISCOPE_ATTR_SECONDARY_ERROR = IVI_ATTR_SECONDARY_ERROR
IVISCOPE_ATTR_SIMULATE = IVI_ATTR_SIMULATE
IVISCOPE_ATTR_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION = IVI_ATTR_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION
@@ -328,119 +328,119 @@
IVISCOPE_ATTR_SPECIFIC_PREFIX = IVI_ATTR_SPECIFIC_PREFIX
IVISCOPE_ATTR_SPY = IVI_ATTR_SPY
IVISCOPE_ATTR_SUPPORTED_INSTRUMENT_MODELS = IVI_ATTR_SUPPORTED_INSTRUMENT_MODELS
-IVISCOPE_ATTR_TRIGGER_COUPLING = (IVI_CLASS_PUBLIC_ATTR_BASE + 14L)
-IVISCOPE_ATTR_TRIGGER_DELAY_TIME = (IVI_CLASS_PUBLIC_ATTR_BASE + 15L)
-IVISCOPE_ATTR_TRIGGER_HOLDOFF = (IVI_CLASS_PUBLIC_ATTR_BASE + 16L)
-IVISCOPE_ATTR_TRIGGER_LEVEL = (IVI_CLASS_PUBLIC_ATTR_BASE + 17L)
-IVISCOPE_ATTR_TRIGGER_MODIFIER = (IVI_CLASS_PUBLIC_ATTR_BASE + 102L)
-IVISCOPE_ATTR_TRIGGER_SLOPE = (IVI_CLASS_PUBLIC_ATTR_BASE + 18L)
-IVISCOPE_ATTR_TRIGGER_SOURCE = (IVI_CLASS_PUBLIC_ATTR_BASE + 13L)
-IVISCOPE_ATTR_TRIGGER_TYPE = (IVI_CLASS_PUBLIC_ATTR_BASE + 12L)
-IVISCOPE_ATTR_TV_TRIGGER_EVENT = (IVI_CLASS_PUBLIC_ATTR_BASE + 205L)
-IVISCOPE_ATTR_TV_TRIGGER_FIELD = (IVI_CLASS_PUBLIC_ATTR_BASE + 202L)
-IVISCOPE_ATTR_TV_TRIGGER_LINE = (IVI_CLASS_PUBLIC_ATTR_BASE + 203L)
-IVISCOPE_ATTR_TV_TRIGGER_LINE_NUMBER = (IVI_CLASS_PUBLIC_ATTR_BASE + 206L)
-IVISCOPE_ATTR_TV_TRIGGER_POLARITY = (IVI_CLASS_PUBLIC_ATTR_BASE + 204L)
-IVISCOPE_ATTR_TV_TRIGGER_SIGNAL_FORMAT = (IVI_CLASS_PUBLIC_ATTR_BASE + 201L)
-IVISCOPE_ATTR_TV_TRIGGER_SIGNAL_TYPE = (IVI_CLASS_PUBLIC_ATTR_BASE + 201L)
+IVISCOPE_ATTR_TRIGGER_COUPLING = (IVI_CLASS_PUBLIC_ATTR_BASE + 14)
+IVISCOPE_ATTR_TRIGGER_DELAY_TIME = (IVI_CLASS_PUBLIC_ATTR_BASE + 15)
+IVISCOPE_ATTR_TRIGGER_HOLDOFF = (IVI_CLASS_PUBLIC_ATTR_BASE + 16)
+IVISCOPE_ATTR_TRIGGER_LEVEL = (IVI_CLASS_PUBLIC_ATTR_BASE + 17)
+IVISCOPE_ATTR_TRIGGER_MODIFIER = (IVI_CLASS_PUBLIC_ATTR_BASE + 102)
+IVISCOPE_ATTR_TRIGGER_SLOPE = (IVI_CLASS_PUBLIC_ATTR_BASE + 18)
+IVISCOPE_ATTR_TRIGGER_SOURCE = (IVI_CLASS_PUBLIC_ATTR_BASE + 13)
+IVISCOPE_ATTR_TRIGGER_TYPE = (IVI_CLASS_PUBLIC_ATTR_BASE + 12)
+IVISCOPE_ATTR_TV_TRIGGER_EVENT = (IVI_CLASS_PUBLIC_ATTR_BASE + 205)
+IVISCOPE_ATTR_TV_TRIGGER_FIELD = (IVI_CLASS_PUBLIC_ATTR_BASE + 202)
+IVISCOPE_ATTR_TV_TRIGGER_LINE = (IVI_CLASS_PUBLIC_ATTR_BASE + 203)
+IVISCOPE_ATTR_TV_TRIGGER_LINE_NUMBER = (IVI_CLASS_PUBLIC_ATTR_BASE + 206)
+IVISCOPE_ATTR_TV_TRIGGER_POLARITY = (IVI_CLASS_PUBLIC_ATTR_BASE + 204)
+IVISCOPE_ATTR_TV_TRIGGER_SIGNAL_FORMAT = (IVI_CLASS_PUBLIC_ATTR_BASE + 201)
+IVISCOPE_ATTR_TV_TRIGGER_SIGNAL_TYPE = (IVI_CLASS_PUBLIC_ATTR_BASE + 201)
IVISCOPE_ATTR_USE_SPECIFIC_SIMULATION = IVI_ATTR_USE_SPECIFIC_SIMULATION
-IVISCOPE_ATTR_VERTICAL_COUPLING = (IVI_CLASS_PUBLIC_ATTR_BASE + 3L)
-IVISCOPE_ATTR_VERTICAL_OFFSET = (IVI_CLASS_PUBLIC_ATTR_BASE + 2L)
-IVISCOPE_ATTR_VERTICAL_RANGE = (IVI_CLASS_PUBLIC_ATTR_BASE + 1L)
-IVISCOPE_ATTR_WIDTH_CONDITION = (IVI_CLASS_PUBLIC_ATTR_BASE + 504L)
-IVISCOPE_ATTR_WIDTH_HIGH_THRESHOLD = (IVI_CLASS_PUBLIC_ATTR_BASE + 502L)
-IVISCOPE_ATTR_WIDTH_LOW_THRESHOLD = (IVI_CLASS_PUBLIC_ATTR_BASE + 501L)
-IVISCOPE_ATTR_WIDTH_POLARITY = (IVI_CLASS_PUBLIC_ATTR_BASE + 503L)
+IVISCOPE_ATTR_VERTICAL_COUPLING = (IVI_CLASS_PUBLIC_ATTR_BASE + 3)
+IVISCOPE_ATTR_VERTICAL_OFFSET = (IVI_CLASS_PUBLIC_ATTR_BASE + 2)
+IVISCOPE_ATTR_VERTICAL_RANGE = (IVI_CLASS_PUBLIC_ATTR_BASE + 1)
+IVISCOPE_ATTR_WIDTH_CONDITION = (IVI_CLASS_PUBLIC_ATTR_BASE + 504)
+IVISCOPE_ATTR_WIDTH_HIGH_THRESHOLD = (IVI_CLASS_PUBLIC_ATTR_BASE + 502)
+IVISCOPE_ATTR_WIDTH_LOW_THRESHOLD = (IVI_CLASS_PUBLIC_ATTR_BASE + 501)
+IVISCOPE_ATTR_WIDTH_POLARITY = (IVI_CLASS_PUBLIC_ATTR_BASE + 503)
IVISCOPE_DRIVER_DESCRIPTION = "IviScope Class Driver"
IVISCOPE_DRIVER_VENDOR = "National Instruments"
IVISCOPE_ERRMSG_CHANNEL_NOT_ENABLED = "Specified channel is not enabled."
IVISCOPE_ERRMSG_INVALID_ACQ_TYPE = "Invalid acquisition type."
IVISCOPE_ERRMSG_MAX_TIME_EXCEEDED = "Maximum time exceeded before the operation completed."
IVISCOPE_ERRMSG_UNABLE_TO_PERFORM_MEASUREMENT = "Unable to perform desired measurement operation."
-IVISCOPE_ERROR_CHANNEL_NOT_ENABLED = (IVI_CLASS_ERROR_BASE + 0x0001L)
-IVISCOPE_ERROR_INVALID_ACQ_TYPE = (IVI_CLASS_ERROR_BASE + 0x0004L)
-IVISCOPE_ERROR_MAX_TIME_EXCEEDED = (IVI_CLASS_ERROR_BASE + 0x0003L)
-IVISCOPE_ERROR_UNABLE_TO_PERFORM_MEASUREMENT = (IVI_CLASS_ERROR_BASE + 0x0002L)
-IVISCOPE_MAJOR_VERSION = (3L)
-IVISCOPE_MINOR_VERSION = (0L)
-IVISCOPE_SPECIFICATION_MAJOR_VERSION = (3L)
-IVISCOPE_SPECIFICATION_MINOR_VERSION = (0L)
+IVISCOPE_ERROR_CHANNEL_NOT_ENABLED = (IVI_CLASS_ERROR_BASE + 0x0001)
+IVISCOPE_ERROR_INVALID_ACQ_TYPE = (IVI_CLASS_ERROR_BASE + 0x0004)
+IVISCOPE_ERROR_MAX_TIME_EXCEEDED = (IVI_CLASS_ERROR_BASE + 0x0003)
+IVISCOPE_ERROR_UNABLE_TO_PERFORM_MEASUREMENT = (IVI_CLASS_ERROR_BASE + 0x0002)
+IVISCOPE_MAJOR_VERSION = (3)
+IVISCOPE_MINOR_VERSION = (0)
+IVISCOPE_SPECIFICATION_MAJOR_VERSION = (3)
+IVISCOPE_SPECIFICATION_MINOR_VERSION = (0)
IVISCOPE_VAL_1_MEG_OHM = (1000000.0)
IVISCOPE_VAL_50_OHMS = (50.0)
IVISCOPE_VAL_75_OHMS = (75.0)
-IVISCOPE_VAL_AC = (0L)
-IVISCOPE_VAL_AC_LINE_EITHER = (3L)
-IVISCOPE_VAL_AC_LINE_NEGATIVE = (2L)
-IVISCOPE_VAL_AC_LINE_POSITIVE = (1L)
-IVISCOPE_VAL_AC_LINE_TRIGGER = (7L)
+IVISCOPE_VAL_AC = (0)
+IVISCOPE_VAL_AC_LINE_EITHER = (3)
+IVISCOPE_VAL_AC_LINE_NEGATIVE = (2)
+IVISCOPE_VAL_AC_LINE_POSITIVE = (1)
+IVISCOPE_VAL_AC_LINE_TRIGGER = (7)
IVISCOPE_VAL_AC_LINE = "VAL_AC_LINE"
-IVISCOPE_VAL_ACQ_COMPLETE = (1L)
-IVISCOPE_VAL_ACQ_IN_PROGRESS = (0L)
-IVISCOPE_VAL_ACQ_STATUS_UNKNOWN = (-1L)
-IVISCOPE_VAL_ACQ_TYPE_CLASS_EXT_BASE = (100L)
-IVISCOPE_VAL_ACQ_TYPE_SPECIFIC_EXT_BASE = (1000L)
-IVISCOPE_VAL_ACQUISITION_TYPE_CLASS_EXT_BASE = (100L)
-IVISCOPE_VAL_ACQUISITION_TYPE_SPECIFIC_EXT_BASE = (1000L)
-IVISCOPE_VAL_AMPLITUDE = (15L)
-IVISCOPE_VAL_AUTO = (2L)
-IVISCOPE_VAL_AUTO_LEVEL = (3L)
-IVISCOPE_VAL_AVERAGE = (4L)
-IVISCOPE_VAL_CALCULATION_SPECIFIC_DRIVER_BASE = (1000L)
-IVISCOPE_VAL_DC = (1L)
-IVISCOPE_VAL_DUTY_CYCLE_NEG = (13L)
-IVISCOPE_VAL_DUTY_CYCLE_POS = (14L)
+IVISCOPE_VAL_ACQ_COMPLETE = (1)
+IVISCOPE_VAL_ACQ_IN_PROGRESS = (0)
+IVISCOPE_VAL_ACQ_STATUS_UNKNOWN = (-1)
+IVISCOPE_VAL_ACQ_TYPE_CLASS_EXT_BASE = (100)
+IVISCOPE_VAL_ACQ_TYPE_SPECIFIC_EXT_BASE = (1000)
+IVISCOPE_VAL_ACQUISITION_TYPE_CLASS_EXT_BASE = (100)
+IVISCOPE_VAL_ACQUISITION_TYPE_SPECIFIC_EXT_BASE = (1000)
+IVISCOPE_VAL_AMPLITUDE = (15)
+IVISCOPE_VAL_AUTO = (2)
+IVISCOPE_VAL_AUTO_LEVEL = (3)
+IVISCOPE_VAL_AVERAGE = (4)
+IVISCOPE_VAL_CALCULATION_SPECIFIC_DRIVER_BASE = (1000)
+IVISCOPE_VAL_DC = (1)
+IVISCOPE_VAL_DUTY_CYCLE_NEG = (13)
+IVISCOPE_VAL_DUTY_CYCLE_POS = (14)
IVISCOPE_VAL_ECL0 = "VAL_ECL0"
IVISCOPE_VAL_ECL1 = "VAL_ECL1"
-IVISCOPE_VAL_EDGE = (1L)
-IVISCOPE_VAL_EDGE_TRIGGER = (1L)
-IVISCOPE_VAL_ENVELOPE = (3L)
-IVISCOPE_VAL_EQUIVALENT_TIME = (1L)
+IVISCOPE_VAL_EDGE = (1)
+IVISCOPE_VAL_EDGE_TRIGGER = (1)
+IVISCOPE_VAL_ENVELOPE = (3)
+IVISCOPE_VAL_EQUIVALENT_TIME = (1)
IVISCOPE_VAL_EXTERNAL = "VAL_EXTERNAL"
-IVISCOPE_VAL_FALL_TIME = (1L)
-IVISCOPE_VAL_FREQUENCY = (2L)
-IVISCOPE_VAL_GLITCH = (103L)
-IVISCOPE_VAL_GLITCH_EITHER = (3L)
-IVISCOPE_VAL_GLITCH_GREATER_THAN = (2L)
-IVISCOPE_VAL_GLITCH_LESS_THAN = (1L)
-IVISCOPE_VAL_GLITCH_NEGATIVE = (2L)
-IVISCOPE_VAL_GLITCH_POSITIVE = (1L)
-IVISCOPE_VAL_GLITCH_TRIGGER = (4L)
-IVISCOPE_VAL_GND = (2L)
+IVISCOPE_VAL_FALL_TIME = (1)
+IVISCOPE_VAL_FREQUENCY = (2)
+IVISCOPE_VAL_GLITCH = (103)
+IVISCOPE_VAL_GLITCH_EITHER = (3)
+IVISCOPE_VAL_GLITCH_GREATER_THAN = (2)
+IVISCOPE_VAL_GLITCH_LESS_THAN = (1)
+IVISCOPE_VAL_GLITCH_NEGATIVE = (2)
+IVISCOPE_VAL_GLITCH_POSITIVE = (1)
+IVISCOPE_VAL_GLITCH_TRIGGER = (4)
+IVISCOPE_VAL_GND = (2)
IVISCOPE_VAL_GPIB_GET = "VAL_GPIB_GET"
-IVISCOPE_VAL_HF_REJECT = (3L)
-IVISCOPE_VAL_HI_RES = (2L)
-IVISCOPE_VAL_IMMEDIATE_TRIGGER = (6L)
+IVISCOPE_VAL_HF_REJECT = (3)
+IVISCOPE_VAL_HI_RES = (2)
+IVISCOPE_VAL_IMMEDIATE_TRIGGER = (6)
IVISCOPE_VAL_IMMEDIATE = "VAL_IMMEDIATE"
-IVISCOPE_VAL_INFINITE = (-1L)
-IVISCOPE_VAL_INTERPOLATION_CLASS_EXT_BASE = (100L)
-IVISCOPE_VAL_INTERPOLATION_SPECIFIC_EXT_BASE = (1000L)
+IVISCOPE_VAL_INFINITE = (-1)
+IVISCOPE_VAL_INTERPOLATION_CLASS_EXT_BASE = (100)
+IVISCOPE_VAL_INTERPOLATION_SPECIFIC_EXT_BASE = (1000)
IVISCOPE_VAL_INVALID_WFM_VOLTAGE = (1.0E+301)
-IVISCOPE_VAL_LF_REJECT = (4L)
-IVISCOPE_VAL_LINEAR = (3L)
+IVISCOPE_VAL_LF_REJECT = (4)
+IVISCOPE_VAL_LINEAR = (3)
IVISCOPE_VAL_MAX_TIME_IMMEDIATE = IVI_VAL_MAX_TIME_IMMEDIATE
IVISCOPE_VAL_MAX_TIME_INFINITE = IVI_VAL_MAX_TIME_INFINITE
IVISCOPE_VAL_MAX_VALID_WFM_VOLTAGE = (1.0E+300)
-IVISCOPE_VAL_MEASUREMENT_FUNCTION_CLASS_EXT_BASE = (100L)
-IVISCOPE_VAL_MEASUREMENT_FUNCTION_SPECIFIC_EXT_BASE = (1000L)
-IVISCOPE_VAL_NEGATIVE = (0L)
-IVISCOPE_VAL_NO_INTERPOLATION = (1L)
-IVISCOPE_VAL_NOISE_REJECT = (5L)
-IVISCOPE_VAL_NORMAL = (0L)
-IVISCOPE_VAL_NO_TRIGGER_MOD = (1L)
-IVISCOPE_VAL_NTSC = (1L)
-IVISCOPE_VAL_OVERSHOOT = (18L)
-IVISCOPE_VAL_PAL = (2L)
-IVISCOPE_VAL_PATTERN = (105L)
-IVISCOPE_VAL_PEAK_DETECT = (1L)
-IVISCOPE_VAL_PERIOD = (3L)
-IVISCOPE_VAL_POSITIVE = (1L)
-IVISCOPE_VAL_PRESHOOT = (19L)
-IVISCOPE_VAL_PROBE_ATTENUATION_CLASS_EXT_BASE = (-100L)
-IVISCOPE_VAL_PROBE_ATTENUATION_SPECIFIC_EXT_BASE = (-1000L)
-IVISCOPE_VAL_PROBE_SENSE_ON = (-1L)
+IVISCOPE_VAL_MEASUREMENT_FUNCTION_CLASS_EXT_BASE = (100)
+IVISCOPE_VAL_MEASUREMENT_FUNCTION_SPECIFIC_EXT_BASE = (1000)
+IVISCOPE_VAL_NEGATIVE = (0)
+IVISCOPE_VAL_NO_INTERPOLATION = (1)
+IVISCOPE_VAL_NOISE_REJECT = (5)
+IVISCOPE_VAL_NORMAL = (0)
+IVISCOPE_VAL_NO_TRIGGER_MOD = (1)
+IVISCOPE_VAL_NTSC = (1)
+IVISCOPE_VAL_OVERSHOOT = (18)
+IVISCOPE_VAL_PAL = (2)
+IVISCOPE_VAL_PATTERN = (105)
+IVISCOPE_VAL_PEAK_DETECT = (1)
+IVISCOPE_VAL_PERIOD = (3)
+IVISCOPE_VAL_POSITIVE = (1)
+IVISCOPE_VAL_PRESHOOT = (19)
+IVISCOPE_VAL_PROBE_ATTENUATION_CLASS_EXT_BASE = (-100)
+IVISCOPE_VAL_PROBE_ATTENUATION_SPECIFIC_EXT_BASE = (-1000)
+IVISCOPE_VAL_PROBE_SENSE_ON = (-1)
IVISCOPE_VAL_PXI_STAR = "VAL_PXI_STAR"
-IVISCOPE_VAL_REAL_TIME = (0L)
-IVISCOPE_VAL_RISE_TIME = (0L)
+IVISCOPE_VAL_REAL_TIME = (0)
+IVISCOPE_VAL_RISE_TIME = (0)
IVISCOPE_VAL_RTSI_0 = "VAL_RTSI_0"
IVISCOPE_VAL_RTSI_1 = "VAL_RTSI_1"
IVISCOPE_VAL_RTSI_2 = "VAL_RTSI_2"
@@ -448,21 +448,21 @@
IVISCOPE_VAL_RTSI_4 = "VAL_RTSI_4"
IVISCOPE_VAL_RTSI_5 = "VAL_RTSI_5"
IVISCOPE_VAL_RTSI_6 = "VAL_RTSI_6"
-IVISCOPE_VAL_RUNT = (102L)
-IVISCOPE_VAL_RUNT_EITHER = (3L)
-IVISCOPE_VAL_RUNT_NEGATIVE = (2L)
-IVISCOPE_VAL_RUNT_POSITIVE = (1L)
-IVISCOPE_VAL_RUNT_TRIGGER = (3L)
-IVISCOPE_VAL_SECAM = (3L)
-IVISCOPE_VAL_SINE_X = (2L)
-IVISCOPE_VAL_STATE = (104L)
+IVISCOPE_VAL_RUNT = (102)
+IVISCOPE_VAL_RUNT_EITHER = (3)
+IVISCOPE_VAL_RUNT_NEGATIVE = (2)
+IVISCOPE_VAL_RUNT_POSITIVE = (1)
+IVISCOPE_VAL_RUNT_TRIGGER = (3)
+IVISCOPE_VAL_SECAM = (3)
+IVISCOPE_VAL_SINE_X = (2)
+IVISCOPE_VAL_STATE = (104)
IVISCOPE_VAL_SW_TRIG_FUNC = "VAL_SW_TRIG_FUNC"
-IVISCOPE_VAL_TRIGGER_COUPLING_CLASS_EXT_BASE = (100L)
-IVISCOPE_VAL_TRIGGER_COUPLING_SPECIFIC_EXT_BASE = (1000L)
-IVISCOPE_VAL_TRIGGER_MOD_CLASS_EXT_BASE = (100L)
-IVISCOPE_VAL_TRIGGER_MOD_SPECIFIC_EXT_BASE = (1000L)
-IVISCOPE_VAL_TRIGGER_TYPE_CLASS_EXT_BASE = (200L)
-IVISCOPE_VAL_TRIGGER_TYPE_SPECIFIC_EXT_BASE = (1000L)
+IVISCOPE_VAL_TRIGGER_COUPLING_CLASS_EXT_BASE = (100)
+IVISCOPE_VAL_TRIGGER_COUPLING_SPECIFIC_EXT_BASE = (1000)
+IVISCOPE_VAL_TRIGGER_MOD_CLASS_EXT_BASE = (100)
+IVISCOPE_VAL_TRIGGER_MOD_SPECIFIC_EXT_BASE = (1000)
+IVISCOPE_VAL_TRIGGER_TYPE_CLASS_EXT_BASE = (200)
+IVISCOPE_VAL_TRIGGER_TYPE_SPECIFIC_EXT_BASE = (1000)
IVISCOPE_VAL_TTL0 = "VAL_TTL0"
IVISCOPE_VAL_TTL1 = "VAL_TTL1"
IVISCOPE_VAL_TTL2 = "VAL_TTL2"
@@ -471,49 +471,49 @@
IVISCOPE_VAL_TTL5 = "VAL_TTL5"
IVISCOPE_VAL_TTL6 = "VAL_TTL6"
IVISCOPE_VAL_TTL7 = "VAL_TTL7"
-IVISCOPE_VAL_TV = (106L)
-IVISCOPE_VAL_TV_ANY_FIELD = (-1L)
-IVISCOPE_VAL_TV_EVENT_ANY_FIELD = (3L)
-IVISCOPE_VAL_TV_EVENT_ANY_LINE = (4L)
-IVISCOPE_VAL_TV_EVENT_FIELD1 = (1L)
-IVISCOPE_VAL_TV_EVENT_FIELD2 = (2L)
-IVISCOPE_VAL_TV_EVENT_LINE_NUMBER = (5L)
-IVISCOPE_VAL_TV_FIELD1 = (1L)
-IVISCOPE_VAL_TV_FIELD2 = (2L)
-IVISCOPE_VAL_TV_NEGATIVE = (2L)
-IVISCOPE_VAL_TV_POSITIVE = (1L)
-IVISCOPE_VAL_TV_SIGNAL_FORMAT_CLASS_EXT_BASE = (100L)
-IVISCOPE_VAL_TV_SIGNAL_FORMAT_SPECIFIC_EXT_BASE = (1000L)
-IVISCOPE_VAL_TV_SIGNAL_TYPE_CLASS_EXT_BASE = (100L)
-IVISCOPE_VAL_TV_SIGNAL_TYPE_SPECIFIC_EXT_BASE = (1000L)
-IVISCOPE_VAL_TV_TRIGGER = (5L)
-IVISCOPE_VAL_TV_TRIGGER_EVENT_CLASS_EXT_BASE = (100L)
-IVISCOPE_VAL_TV_TRIGGER_EVENT_SPECIFIC_EXT_BASE = (1000L)
-IVISCOPE_VAL_TV_TRIGGER_FIELD_CLASS_EXT_BASE = (100L)
-IVISCOPE_VAL_TV_TRIGGER_FIELD_SPECIFIC_EXT_BASE = (1000L)
-IVISCOPE_VAL_TV_TRIGGER_POLARITY_CLASS_EXT_BASE = (100L)
-IVISCOPE_VAL_TV_TRIGGER_POLARITY_SPECIFIC_EXT_BASE = (1000L)
-IVISCOPE_VAL_VERTICAL_COUPLING_CLASS_EXT_BASE = (100L)
-IVISCOPE_VAL_VERTICAL_COUPLING_SPECIFIC_EXT_BASE = (1000L)
-IVISCOPE_VAL_VOLTAGE_AVERAGE = (10L)
-IVISCOPE_VAL_VOLTAGE_CYCLE_AVERAGE = (17L)
-IVISCOPE_VAL_VOLTAGE_CYCLE_RMS = (16L)
-IVISCOPE_VAL_VOLTAGE_HIGH = (8L)
-IVISCOPE_VAL_VOLTAGE_LOW = (9L)
-IVISCOPE_VAL_VOLTAGE_MAX = (6L)
-IVISCOPE_VAL_VOLTAGE_MIN = (7L)
-IVISCOPE_VAL_VOLTAGE_PEAK_TO_PEAK = (5L)
-IVISCOPE_VAL_VOLTAGE_RMS = (4L)
-IVISCOPE_VAL_WIDTH = (101L)
-IVISCOPE_VAL_WIDTH_EITHER = (3L)
-IVISCOPE_VAL_WIDTH_NEG = (11L)
-IVISCOPE_VAL_WIDTH_NEGATIVE = (2L)
-IVISCOPE_VAL_WIDTH_OUTSIDE = (2L)
-IVISCOPE_VAL_WIDTH_POS = (12L)
-IVISCOPE_VAL_WIDTH_POSITIVE = (1L)
-IVISCOPE_VAL_WIDTH_TRIGGER = (2L)
-IVISCOPE_VAL_WIDTH_WITHIN = (1L)
-IVISCOPE_WARN_INVALID_WFM_ELEMENT = (IVI_CLASS_WARN_BASE + 0x0001L)
+IVISCOPE_VAL_TV = (106)
+IVISCOPE_VAL_TV_ANY_FIELD = (-1)
+IVISCOPE_VAL_TV_EVENT_ANY_FIELD = (3)
+IVISCOPE_VAL_TV_EVENT_ANY_LINE = (4)
+IVISCOPE_VAL_TV_EVENT_FIELD1 = (1)
+IVISCOPE_VAL_TV_EVENT_FIELD2 = (2)
+IVISCOPE_VAL_TV_EVENT_LINE_NUMBER = (5)
+IVISCOPE_VAL_TV_FIELD1 = (1)
+IVISCOPE_VAL_TV_FIELD2 = (2)
+IVISCOPE_VAL_TV_NEGATIVE = (2)
+IVISCOPE_VAL_TV_POSITIVE = (1)
+IVISCOPE_VAL_TV_SIGNAL_FORMAT_CLASS_EXT_BASE = (100)
+IVISCOPE_VAL_TV_SIGNAL_FORMAT_SPECIFIC_EXT_BASE = (1000)
+IVISCOPE_VAL_TV_SIGNAL_TYPE_CLASS_EXT_BASE = (100)
+IVISCOPE_VAL_TV_SIGNAL_TYPE_SPECIFIC_EXT_BASE = (1000)
+IVISCOPE_VAL_TV_TRIGGER = (5)
+IVISCOPE_VAL_TV_TRIGGER_EVENT_CLASS_EXT_BASE = (100)
+IVISCOPE_VAL_TV_TRIGGER_EVENT_SPECIFIC_EXT_BASE = (1000)
+IVISCOPE_VAL_TV_TRIGGER_FIELD_CLASS_EXT_BASE = (100)
+IVISCOPE_VAL_TV_TRIGGER_FIELD_SPECIFIC_EXT_BASE = (1000)
+IVISCOPE_VAL_TV_TRIGGER_POLARITY_CLASS_EXT_BASE = (100)
+IVISCOPE_VAL_TV_TRIGGER_POLARITY_SPECIFIC_EXT_BASE = (1000)
+IVISCOPE_VAL_VERTICAL_COUPLING_CLASS_EXT_BASE = (100)
+IVISCOPE_VAL_VERTICAL_COUPLING_SPECIFIC_EXT_BASE = (1000)
+IVISCOPE_VAL_VOLTAGE_AVERAGE = (10)
+IVISCOPE_VAL_VOLTAGE_CYCLE_AVERAGE = (17)
+IVISCOPE_VAL_VOLTAGE_CYCLE_RMS = (16)
+IVISCOPE_VAL_VOLTAGE_HIGH = (8)
+IVISCOPE_VAL_VOLTAGE_LOW = (9)
+IVISCOPE_VAL_VOLTAGE_MAX = (6)
+IVISCOPE_VAL_VOLTAGE_MIN = (7)
+IVISCOPE_VAL_VOLTAGE_PEAK_TO_PEAK = (5)
+IVISCOPE_VAL_VOLTAGE_RMS = (4)
+IVISCOPE_VAL_WIDTH = (101)
+IVISCOPE_VAL_WIDTH_EITHER = (3)
+IVISCOPE_VAL_WIDTH_NEG = (11)
+IVISCOPE_VAL_WIDTH_NEGATIVE = (2)
+IVISCOPE_VAL_WIDTH_OUTSIDE = (2)
+IVISCOPE_VAL_WIDTH_POS = (12)
+IVISCOPE_VAL_WIDTH_POSITIVE = (1)
+IVISCOPE_VAL_WIDTH_TRIGGER = (2)
+IVISCOPE_VAL_WIDTH_WITHIN = (1)
+IVISCOPE_WARN_INVALID_WFM_ELEMENT = (IVI_CLASS_WARN_BASE + 0x0001)
IVISCOPE_WARNMSG_INVALID_WFM_ELEMENT = "One of the elements in the waveform array is invalid."
IVI_SHARED_COMPONENT_ERROR_BASE = (IVI_ERROR_BASE + 0x1000)
IVI_SPECIFIC_ERROR_BASE = (IVI_ERROR_BASE + 0x4000)
@@ -523,63 +523,63 @@
IVI_VAL_400_HERTZ = 400.0
IVI_VAL_50_HERTZ = 50.0
IVI_VAL_60_HERTZ = 60.0
-IVI_VAL_ADDR = 10L
+IVI_VAL_ADDR = 10
IVI_VAL_ALL_CHANNELS = "IVI_ALL_CHANNELS"
IVI_VAL_ALL_INSTANCES = IVI_VAL_ALL_CHANNELS
-IVI_VAL_ALWAYS_CACHE = (1L << 6)
+IVI_VAL_ALWAYS_CACHE = (1 << 6)
IVI_VAL_APPEND = 2
IVI_VAL_ATTR_SET_TO_INSTR_SPECIFIC_VALUE = 3
-IVI_VAL_BOOLEAN = 13L
+IVI_VAL_BOOLEAN = 13
IVI_VAL_CHECK_CALLBACK = 4
IVI_VAL_CHECK_CALL_CLASS_CALLBACK = 3
IVI_VAL_CHECK_EXEMPT = 4
IVI_VAL_CHECK_IN_USER_SPECIFIED_STATE = 1
IVI_VAL_CHECK_READ_ONLY_ATTR_NEVER_SET = 2
IVI_VAL_CLASS_DEFINED_INTERCHANGE_WARNING = 5
-IVI_VAL_COERCEABLE_ONLY_BY_INSTR = (1L << 11)
+IVI_VAL_COERCEABLE_ONLY_BY_INSTR = (1 << 11)
IVI_VAL_COERCE_CALLBACK = 5
IVI_VAL_COERCED = 2
IVI_VAL_COMPARE_CALLBACK = 3
IVI_VAL_DIRECT_USER_CALL = (1 << 0)
IVI_VAL_DISCRETE = 0
-IVI_VAL_DONT_CHECK_STATUS = (1L << 15)
+IVI_VAL_DONT_CHECK_STATUS = (1 << 15)
IVI_VAL_DONT_MARK_AS_SET_BY_USER = (1 << 2)
-IVI_VAL_DONT_RETURN_DEFERRED_VALUE = (1L << 8)
+IVI_VAL_DONT_RETURN_DEFERRED_VALUE = (1 << 8)
IVI_VAL_FAILURE_APPLYING_UNUSED_EXTENSION_VALUE = 4
-IVI_VAL_FLUSH_ON_WRITE = (1L << 9)
+IVI_VAL_FLUSH_ON_WRITE = (1 << 9)
IVI_VAL_HIDDEN = (IVI_VAL_NOT_USER_READABLE | IVI_VAL_NOT_USER_WRITABLE)
-IVI_VAL_INT32 = 1L
-IVI_VAL_MULTI_CHANNEL = (1L << 10)
-IVI_VAL_NEVER_CACHE = (1L << 5)
+IVI_VAL_INT32 = 1
+IVI_VAL_MULTI_CHANNEL = (1 << 10)
+IVI_VAL_NEVER_CACHE = (1 << 5)
IVI_VAL_NI4882_SESSION_TYPE = "NI-488.2"
IVI_VAL_NIDAQ_SESSION_TYPE = "NI-DAQ"
IVI_VAL_NISERIAL_SESSION_TYPE = "NI-Serial"
IVI_VAL_NIVXI_SESSION_TYPE = "NI-VXI"
-IVI_VAL_NO_DEFERRED_UPDATE = (1L << 7)
+IVI_VAL_NO_DEFERRED_UPDATE = (1 << 7)
IVI_VAL_NOT_IN_USER_SPECIFIED_STATE = 1
-IVI_VAL_NOT_READABLE = (1L << 1)
-IVI_VAL_NOT_SUPPORTED = (1L << 0)
-IVI_VAL_NOT_WRITABLE = (1L << 2)
+IVI_VAL_NOT_READABLE = (1 << 1)
+IVI_VAL_NOT_SUPPORTED = (1 << 0)
+IVI_VAL_NOT_WRITABLE = (1 << 2)
IVI_VAL_NO_WAIT = 0
IVI_VAL_RANGED = 1
IVI_VAL_RANGE_TABLE_CALLBACK = 6
IVI_VAL_READ_CALLBACK = 1
IVI_VAL_READ_ONLY_ATTR_SET_BY_USER = 2
-IVI_VAL_REAL64 = 4L
-IVI_VAL_SESSION = 11L
+IVI_VAL_REAL64 = 4
+IVI_VAL_SESSION = 11
IVI_VAL_SET_CACHE_ONLY = (1 << 1)
-IVI_VAL_STRING = 5L
+IVI_VAL_STRING = 5
IVI_VAL_TRUNCATE = 1
IVI_VAL_TYPE_NAN = 1
IVI_VAL_TYPE_NINF = 3
IVI_VAL_TYPE_NORMAL = 0
IVI_VAL_TYPE_PINF = 2
-IVI_VAL_UNKNOWN_TYPE = 14L
-IVI_VAL_USE_CALLBACKS_FOR_SIMULATION = (1L << 14)
+IVI_VAL_UNKNOWN_TYPE = 14
+IVI_VAL_USE_CALLBACKS_FOR_SIMULATION = (1 << 14)
IVI_VAL_VISA_SESSION_TYPE = "VISA"
IVI_VAL_WAIT_FOREVER = IVI_VIREAL64_MAX
-IVI_VAL_WAIT_FOR_OPC_AFTER_WRITES = (1L << 13)
-IVI_VAL_WAIT_FOR_OPC_BEFORE_READS = (1L << 12)
+IVI_VAL_WAIT_FOR_OPC_AFTER_WRITES = (1 << 13)
+IVI_VAL_WAIT_FOR_OPC_BEFORE_READS = (1 << 12)
IVI_VAL_WRITE_CALLBACK = 2
IVI_VIREAL64_MAX_NEG = (-IVI_VIREAL64_MAX)
IVI_WARN_NSUP_ERROR_QUERY = (IVI_WARN_BASE + 0x68)
@@ -587,22 +587,22 @@
IVI_WARN_NSUP_RESET = (IVI_WARN_BASE + 0x66)
IVI_WARN_NSUP_REV_QUERY = (IVI_WARN_BASE + 0x69)
IVI_WARN_NSUP_SELF_TEST = (IVI_WARN_BASE + 0x67)
-NISCOPE_ATTR_5102_ADJUST_PRETRIGGER_SAMPLES = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 85L)
-NISCOPE_ATTR_ACQ_ARM_SOURCE = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 53L)
+NISCOPE_ATTR_5102_ADJUST_PRETRIGGER_SAMPLES = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 85)
+NISCOPE_ATTR_ACQ_ARM_SOURCE = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 53)
NISCOPE_ATTR_ACQUISITION_START_TIME = IVISCOPE_ATTR_ACQUISITION_START_TIME
NISCOPE_ATTR_ACQUISITION_TYPE = IVISCOPE_ATTR_ACQUISITION_TYPE
NISCOPE_ATTR_ADV_TRIG_SRC = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 94)
-NISCOPE_ATTR_ALLOW_MORE_RECORDS_THAN_MEMORY = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 68L)
+NISCOPE_ATTR_ALLOW_MORE_RECORDS_THAN_MEMORY = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 68)
NISCOPE_ATTR_ARM_REF_TRIG_SRC = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 95)
-NISCOPE_ATTR_BACKLOG = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 84L)
+NISCOPE_ATTR_BACKLOG = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 84)
NISCOPE_ATTR_BANDWIDTH = IVISCOPE_ATTR_BANDWIDTH
-NISCOPE_ATTR_BINARY_SAMPLE_WIDTH = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 5L)
+NISCOPE_ATTR_BINARY_SAMPLE_WIDTH = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 5)
NISCOPE_ATTR_CACHE = IVI_ATTR_CACHE
NISCOPE_ATTR_CHANNEL_COUNT = IVI_ATTR_CHANNEL_COUNT
NISCOPE_ATTR_CHANNEL_ENABLED = IVISCOPE_ATTR_CHANNEL_ENABLED
NISCOPE_ATTR_CHANNEL_TERMINAL_CONFIGURATION = (
IVI_SPECIFIC_PUBLIC_ATTR_BASE + 107)
-NISCOPE_ATTR_CLOCK_SYNC_PULSE_SOURCE = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 7L)
+NISCOPE_ATTR_CLOCK_SYNC_PULSE_SOURCE = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 7)
NISCOPE_ATTR_DAQMX_TASK = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 92)
NISCOPE_ATTR_DDC_AGC_AVERAGE_CONTROL = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 1047)
NISCOPE_ATTR_DDC_AGC_LOOP_GAIN_0_EXPONENT = (
@@ -681,7 +681,7 @@
IVI_SPECIFIC_PUBLIC_ATTR_BASE + 1125)
NISCOPE_ATTR_DEFER_UPDATE = IVI_ATTR_DEFER_UPDATE
NISCOPE_ATTR_DELAY_BEFORE_INITIATE = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 1304)
-NISCOPE_ATTR_DEVICE_NUMBER = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 76L)
+NISCOPE_ATTR_DEVICE_NUMBER = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 76)
NISCOPE_ATTR_DEVICE_TEMPERATURE = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 86)
NISCOPE_ATTR_DRIVER_MAJOR_VERSION = IVI_ATTR_DRIVER_MAJOR_VERSION
NISCOPE_ATTR_DRIVER_MINOR_VERSION = IVI_ATTR_DRIVER_MINOR_VERSION
@@ -698,23 +698,23 @@
NISCOPE_ATTR_EXPORTED_SAMPLE_CLOCK_OUTPUT_TERMINAL = (
IVI_SPECIFIC_PUBLIC_ATTR_BASE + 91)
NISCOPE_ATTR_EXPORT_SAMP_CLK_OUTPUT_TERM = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 91)
-NISCOPE_ATTR_FETCH_INTERLEAVED_DATA = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 72L)
-NISCOPE_ATTR_FETCH_MEAS_NUM_SAMPLES = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 81L)
-NISCOPE_ATTR_FETCH_NUM_RECORDS = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 80L)
-NISCOPE_ATTR_FETCH_OFFSET = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 78L)
-NISCOPE_ATTR_FETCH_RECORD_NUMBER = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 79L)
-NISCOPE_ATTR_FETCH_RELATIVE_TO = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 77L)
+NISCOPE_ATTR_FETCH_INTERLEAVED_DATA = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 72)
+NISCOPE_ATTR_FETCH_MEAS_NUM_SAMPLES = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 81)
+NISCOPE_ATTR_FETCH_NUM_RECORDS = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 80)
+NISCOPE_ATTR_FETCH_OFFSET = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 78)
+NISCOPE_ATTR_FETCH_RECORD_NUMBER = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 79)
+NISCOPE_ATTR_FETCH_RELATIVE_TO = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 77)
NISCOPE_ATTR_FLEX_FIR_ANTIALIAS_FILTER_TYPE = (
IVI_SPECIFIC_PUBLIC_ATTR_BASE + 271)
NISCOPE_ATTR_GROUP_CAPABILITIES = IVI_ATTR_GROUP_CAPABILITIES
-NISCOPE_ATTR_HORZ_ENFORCE_REALTIME = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 4L)
+NISCOPE_ATTR_HORZ_ENFORCE_REALTIME = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 4)
NISCOPE_ATTR_HORZ_MIN_NUM_PTS = IVISCOPE_ATTR_HORZ_MIN_NUM_PTS
-NISCOPE_ATTR_HORZ_NUM_RECORDS = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 1L)
+NISCOPE_ATTR_HORZ_NUM_RECORDS = (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 1)
NISCOPE_ATTR_HORZ_RECORD_LENGTH = IVISCOPE_ATTR_HORZ_RECORD_LENGTH
NISCOPE_ATTR_HORZ_RECORD_REF_POSITION = IVISCOPE_ATTR_HORZ_RECORD_REF_POSITION