digilent 0.17.4__tar.gz → 0.18.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {digilent-0.17.4 → digilent-0.18.1}/.gitignore +6 -1
- {digilent-0.17.4 → digilent-0.18.1}/PKG-INFO +1 -1
- {digilent-0.17.4 → digilent-0.18.1}/pyproject.toml +1 -1
- {digilent-0.17.4 → digilent-0.18.1}/src/egse/digilent/digilent.py +77 -72
- {digilent-0.17.4 → digilent-0.18.1}/src/egse/digilent/measurpoint/digilent_devif.py +4 -4
- {digilent-0.17.4 → digilent-0.18.1}/src/egse/digilent/measurpoint/dt8874/dt8874.py +1 -1
- {digilent-0.17.4 → digilent-0.18.1}/src/egse/digilent/measurpoint/dt8874/dt8874_cs.py +6 -0
- {digilent-0.17.4 → digilent-0.18.1}/src/egse/digilent/measurpoint/dt8874/dt8874_protocol.py +1 -0
- {digilent-0.17.4 → digilent-0.18.1}/README.md +0 -0
- {digilent-0.17.4 → digilent-0.18.1}/src/digilent/__init__.py +0 -0
- {digilent-0.17.4 → digilent-0.18.1}/src/digilent/cgse_explore.py +0 -0
- {digilent-0.17.4 → digilent-0.18.1}/src/digilent/cgse_services.py +0 -0
- {digilent-0.17.4 → digilent-0.18.1}/src/digilent/settings.yaml +0 -0
- {digilent-0.17.4 → digilent-0.18.1}/src/egse/digilent/measurpoint/dt8874/__init__.py +0 -0
- {digilent-0.17.4 → digilent-0.18.1}/src/egse/digilent/measurpoint/dt8874/dt8874.yaml +0 -0
- {digilent-0.17.4 → digilent-0.18.1}/src/egse/digilent/measurpoint/dt8874/dt8874_devif.py +0 -0
|
@@ -465,7 +465,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
465
465
|
setup = setup or load_setup()
|
|
466
466
|
|
|
467
467
|
try:
|
|
468
|
-
channel_config = setup.gse.
|
|
468
|
+
channel_config = setup.gse.pmx_a
|
|
469
469
|
|
|
470
470
|
if "RTD" in channel_config:
|
|
471
471
|
self.channels["RTD"] = navdict()
|
|
@@ -534,14 +534,14 @@ class DigilentInterface(DeviceInterface):
|
|
|
534
534
|
device is forced into the operation complete idle state.
|
|
535
535
|
"""
|
|
536
536
|
|
|
537
|
-
|
|
537
|
+
raise NotImplementedError
|
|
538
538
|
|
|
539
539
|
@dynamic_command(
|
|
540
540
|
cmd_type=CommandType.WRITE,
|
|
541
|
-
cmd_string="*ESE",
|
|
541
|
+
cmd_string="*ESE ${bits}",
|
|
542
542
|
process_cmd_string=add_lf,
|
|
543
543
|
)
|
|
544
|
-
def
|
|
544
|
+
def set_std_event_status_enable_register(self, bits: int) -> None:
|
|
545
545
|
"""Enables specified bits in the Standard Event Status Enable register.
|
|
546
546
|
|
|
547
547
|
The bits in the Standard Event Status Enable register are:
|
|
@@ -570,7 +570,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
570
570
|
> *ESE 189
|
|
571
571
|
"""
|
|
572
572
|
|
|
573
|
-
|
|
573
|
+
raise NotImplementedError
|
|
574
574
|
|
|
575
575
|
@dynamic_command(
|
|
576
576
|
cmd_type=CommandType.TRANSACTION,
|
|
@@ -609,7 +609,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
609
609
|
This value indicates that bits 0, 2, 3, 4, 5, and 7 of the Standard Event Status Enable register are enabled.
|
|
610
610
|
"""
|
|
611
611
|
|
|
612
|
-
|
|
612
|
+
raise NotImplementedError
|
|
613
613
|
|
|
614
614
|
@dynamic_command(
|
|
615
615
|
cmd_type=CommandType.TRANSACTION,
|
|
@@ -637,7 +637,6 @@ class DigilentInterface(DeviceInterface):
|
|
|
637
637
|
Status Enable register. On power-up, the Standard Event Status Enable register is zero; therefore, all bits in
|
|
638
638
|
the Standard Event Status register are masked.
|
|
639
639
|
|
|
640
|
-
|
|
641
640
|
Returns:
|
|
642
641
|
Integer value expressed in base 2 (binary) that represents the weighted bit value of the Standard Event
|
|
643
642
|
Status register and the binary-weighted decimal value for each bit. Values range from 0 to 255.
|
|
@@ -663,7 +662,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
663
662
|
< 16
|
|
664
663
|
"""
|
|
665
664
|
|
|
666
|
-
|
|
665
|
+
raise NotImplementedError
|
|
667
666
|
|
|
668
667
|
@dynamic_command(
|
|
669
668
|
cmd_type=CommandType.TRANSACTION,
|
|
@@ -692,7 +691,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
692
691
|
firmware.
|
|
693
692
|
"""
|
|
694
693
|
|
|
695
|
-
|
|
694
|
+
raise NotImplementedError
|
|
696
695
|
|
|
697
696
|
@dynamic_command(
|
|
698
697
|
cmd_string="*RST",
|
|
@@ -709,7 +708,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
709
708
|
Refer to IEE 388.2-1992, Sect. 10.32, for more information.
|
|
710
709
|
"""
|
|
711
710
|
|
|
712
|
-
|
|
711
|
+
raise NotImplementedError
|
|
713
712
|
|
|
714
713
|
@dynamic_command(
|
|
715
714
|
cmd_type=CommandType.TRANSACTION,
|
|
@@ -720,7 +719,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
720
719
|
def get_status_byte_register(self) -> int:
|
|
721
720
|
"""Returns the current value of the Status Byte register.
|
|
722
721
|
|
|
723
|
-
The weighted sum of the bit values of
|
|
722
|
+
The weighted sum of the bit values of the Status Byte register is returned, ranging from 0 to 255. The
|
|
724
723
|
following bits, described in 1999 SCPI Syntax & Stype, Sect. 9, are supported:
|
|
725
724
|
|
|
726
725
|
| Bit | Binary weight | Description |
|
|
@@ -732,6 +731,9 @@ class DigilentInterface(DeviceInterface):
|
|
|
732
731
|
|
|
733
732
|
Refer to IEE 388.2-1992, Sect. 10.36, for more information.
|
|
734
733
|
|
|
734
|
+
Returns:
|
|
735
|
+
Weighted sum of the bit values of the Status Byte register, ranging from 0 to 255.
|
|
736
|
+
|
|
735
737
|
Examples:
|
|
736
738
|
The following example shows a query that is correct and causes no errors:
|
|
737
739
|
|
|
@@ -770,7 +772,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
770
772
|
< 0
|
|
771
773
|
"""
|
|
772
774
|
|
|
773
|
-
|
|
775
|
+
raise NotImplementedError
|
|
774
776
|
|
|
775
777
|
@dynamic_command(
|
|
776
778
|
cmd_string="STATus:OPERation:CONDition?",
|
|
@@ -827,7 +829,8 @@ class DigilentInterface(DeviceInterface):
|
|
|
827
829
|
< 0
|
|
828
830
|
> *STB?
|
|
829
831
|
"""
|
|
830
|
-
|
|
832
|
+
|
|
833
|
+
raise NotImplementedError
|
|
831
834
|
|
|
832
835
|
@dynamic_command(
|
|
833
836
|
cmd_string=":STATus:SCAn?",
|
|
@@ -853,7 +856,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
853
856
|
< 1001,1050
|
|
854
857
|
"""
|
|
855
858
|
|
|
856
|
-
|
|
859
|
+
raise NotImplementedError
|
|
857
860
|
|
|
858
861
|
@dynamic_command(
|
|
859
862
|
cmd_string=":SYSTem:CALibrate",
|
|
@@ -871,7 +874,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
871
874
|
> :SYST:CAL
|
|
872
875
|
"""
|
|
873
876
|
|
|
874
|
-
|
|
877
|
+
raise NotImplementedError
|
|
875
878
|
|
|
876
879
|
@dynamic_command(
|
|
877
880
|
cmd_string=":SYSTem:DATE?",
|
|
@@ -896,7 +899,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
896
899
|
< 2008,1,15
|
|
897
900
|
"""
|
|
898
901
|
|
|
899
|
-
|
|
902
|
+
raise NotImplementedError
|
|
900
903
|
|
|
901
904
|
@dynamic_command(
|
|
902
905
|
cmd_string=":SYSTem:ERRor?",
|
|
@@ -967,7 +970,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
967
970
|
< 0,"No error"
|
|
968
971
|
"""
|
|
969
972
|
|
|
970
|
-
|
|
973
|
+
raise NotImplementedError
|
|
971
974
|
|
|
972
975
|
@dynamic_command(
|
|
973
976
|
cmd_string=":SYSTem:ERRor:COUNt?",
|
|
@@ -993,7 +996,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
993
996
|
< 0
|
|
994
997
|
"""
|
|
995
998
|
|
|
996
|
-
|
|
999
|
+
raise NotImplementedError
|
|
997
1000
|
|
|
998
1001
|
@dynamic_command(
|
|
999
1002
|
cmd_string=":SYSTem:PRESet",
|
|
@@ -1006,7 +1009,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1006
1009
|
The effect of this command is the same as pushing the LAN reset switch on the rear panel of the instrument.
|
|
1007
1010
|
"""
|
|
1008
1011
|
|
|
1009
|
-
|
|
1012
|
+
raise NotImplementedError
|
|
1010
1013
|
|
|
1011
1014
|
@dynamic_command(
|
|
1012
1015
|
cmd_string=":SYSTem:COMMunicate:NETwork:IPADdress?",
|
|
@@ -1022,7 +1025,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1022
1025
|
|
|
1023
1026
|
# FIXME This actually returns the IP address of my laptop, rather than the instrument
|
|
1024
1027
|
|
|
1025
|
-
|
|
1028
|
+
raise NotImplementedError
|
|
1026
1029
|
|
|
1027
1030
|
@dynamic_command(
|
|
1028
1031
|
cmd_string=":SYSTem:COMMunicate:NETwork:MASk?",
|
|
@@ -1040,7 +1043,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1040
1043
|
< 255.255.255.0
|
|
1041
1044
|
"""
|
|
1042
1045
|
|
|
1043
|
-
|
|
1046
|
+
raise NotImplementedError
|
|
1044
1047
|
|
|
1045
1048
|
@dynamic_command(
|
|
1046
1049
|
cmd_string=":SYSTem:PASSword:CDISable ${password}",
|
|
@@ -1061,7 +1064,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1061
1064
|
password (str): Password that is stored in permanent memory on the instrument.
|
|
1062
1065
|
"""
|
|
1063
1066
|
|
|
1064
|
-
|
|
1067
|
+
raise NotImplementedError
|
|
1065
1068
|
|
|
1066
1069
|
@dynamic_command(
|
|
1067
1070
|
cmd_string=":SYSTem:PASSword:CENable ${password}",
|
|
@@ -1082,7 +1085,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1082
1085
|
password (str): Password that is stored in permanent memory on the instrument.
|
|
1083
1086
|
"""
|
|
1084
1087
|
|
|
1085
|
-
|
|
1088
|
+
raise NotImplementedError
|
|
1086
1089
|
|
|
1087
1090
|
@dynamic_command(
|
|
1088
1091
|
cmd_string=":SYSTem:PASSword:CENable:STATe?",
|
|
@@ -1103,7 +1106,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1103
1106
|
< 1
|
|
1104
1107
|
"""
|
|
1105
1108
|
|
|
1106
|
-
|
|
1109
|
+
raise NotImplementedError
|
|
1107
1110
|
|
|
1108
1111
|
@dynamic_command(
|
|
1109
1112
|
cmd_string=":SYSTem:PASSword:NEW ${old_password},${new_password}",
|
|
@@ -1125,7 +1128,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1125
1128
|
on the instrument.
|
|
1126
1129
|
"""
|
|
1127
1130
|
|
|
1128
|
-
|
|
1131
|
+
raise NotImplementedError
|
|
1129
1132
|
|
|
1130
1133
|
@dynamic_command(
|
|
1131
1134
|
cmd_string=":SYSTem:VERSion?",
|
|
@@ -1145,7 +1148,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1145
1148
|
< 1999.0
|
|
1146
1149
|
"""
|
|
1147
1150
|
|
|
1148
|
-
|
|
1151
|
+
raise NotImplementedError
|
|
1149
1152
|
|
|
1150
1153
|
@dynamic_command(
|
|
1151
1154
|
cmd_string=":SYSTem:BOArd?",
|
|
@@ -1166,7 +1169,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1166
1169
|
< 6
|
|
1167
1170
|
"""
|
|
1168
1171
|
|
|
1169
|
-
|
|
1172
|
+
raise NotImplementedError
|
|
1170
1173
|
|
|
1171
1174
|
@dynamic_command(
|
|
1172
1175
|
cmd_string=":SYSTem:BOArd:MOdel? ${board_number}",
|
|
@@ -1200,7 +1203,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1200
1203
|
< 5
|
|
1201
1204
|
"""
|
|
1202
1205
|
|
|
1203
|
-
|
|
1206
|
+
raise NotImplementedError
|
|
1204
1207
|
|
|
1205
1208
|
@dynamic_command(
|
|
1206
1209
|
cmd_string=":SYSTem:BOArd:MOdel:NAMe? ${board_number}",
|
|
@@ -1224,7 +1227,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1224
1227
|
< DT8872
|
|
1225
1228
|
"""
|
|
1226
1229
|
|
|
1227
|
-
|
|
1230
|
+
raise NotImplementedError
|
|
1228
1231
|
|
|
1229
1232
|
@dynamic_command(
|
|
1230
1233
|
cmd_string=":SYSTem:BOArd:RANGe? ${board_number}",
|
|
@@ -1254,7 +1257,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1254
1257
|
< -1.250, 1.250
|
|
1255
1258
|
"""
|
|
1256
1259
|
|
|
1257
|
-
|
|
1260
|
+
raise NotImplementedError
|
|
1258
1261
|
|
|
1259
1262
|
@dynamic_command(
|
|
1260
1263
|
cmd_string=":SYSTem:CHANnel?",
|
|
@@ -1277,7 +1280,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1277
1280
|
< @0:23
|
|
1278
1281
|
"""
|
|
1279
1282
|
|
|
1280
|
-
|
|
1283
|
+
raise NotImplementedError
|
|
1281
1284
|
|
|
1282
1285
|
@dynamic_command(
|
|
1283
1286
|
cmd_string=":SYSTem:CHANnel:RTD?",
|
|
@@ -1309,7 +1312,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1309
1312
|
< @8:15
|
|
1310
1313
|
"""
|
|
1311
1314
|
|
|
1312
|
-
|
|
1315
|
+
raise NotImplementedError
|
|
1313
1316
|
|
|
1314
1317
|
@dynamic_command(
|
|
1315
1318
|
cmd_string=":SYSTem:CHANnel:TCouple?",
|
|
@@ -1341,7 +1344,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1341
1344
|
< @0:15
|
|
1342
1345
|
"""
|
|
1343
1346
|
|
|
1344
|
-
|
|
1347
|
+
raise NotImplementedError
|
|
1345
1348
|
|
|
1346
1349
|
@dynamic_command(
|
|
1347
1350
|
cmd_string=":SYSTem:CHANnel:VOLTage:RANGe?",
|
|
@@ -1372,7 +1375,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1372
1375
|
< (@16:23)
|
|
1373
1376
|
"""
|
|
1374
1377
|
|
|
1375
|
-
|
|
1378
|
+
raise NotImplementedError
|
|
1376
1379
|
|
|
1377
1380
|
@dynamic_command(
|
|
1378
1381
|
cmd_string=":SYSTem:DINput?",
|
|
@@ -1393,7 +1396,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1393
1396
|
< 8
|
|
1394
1397
|
"""
|
|
1395
1398
|
|
|
1396
|
-
|
|
1399
|
+
raise NotImplementedError
|
|
1397
1400
|
|
|
1398
1401
|
@dynamic_command(
|
|
1399
1402
|
cmd_string=":SYSTem:DINput?",
|
|
@@ -1414,7 +1417,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1414
1417
|
< 8
|
|
1415
1418
|
"""
|
|
1416
1419
|
|
|
1417
|
-
|
|
1420
|
+
raise NotImplementedError
|
|
1418
1421
|
|
|
1419
1422
|
@dynamic_command(
|
|
1420
1423
|
cmd_string=":SYSTem:SCAn:RATe:MAXimum:SEC?",
|
|
@@ -1435,7 +1438,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1435
1438
|
< 0.10000
|
|
1436
1439
|
"""
|
|
1437
1440
|
|
|
1438
|
-
|
|
1441
|
+
raise NotImplementedError
|
|
1439
1442
|
|
|
1440
1443
|
@dynamic_command(
|
|
1441
1444
|
cmd_string=":SYSTem:SCAn:RATe:MAXimum:HZ?",
|
|
@@ -1456,7 +1459,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1456
1459
|
< 10.00000
|
|
1457
1460
|
"""
|
|
1458
1461
|
|
|
1459
|
-
|
|
1462
|
+
raise NotImplementedError
|
|
1460
1463
|
|
|
1461
1464
|
@dynamic_command(
|
|
1462
1465
|
cmd_string=":SYSTem:SCAn:RATe:MINimum:SEC?",
|
|
@@ -1477,7 +1480,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1477
1480
|
< 6553.5
|
|
1478
1481
|
"""
|
|
1479
1482
|
|
|
1480
|
-
|
|
1483
|
+
raise NotImplementedError
|
|
1481
1484
|
|
|
1482
1485
|
@dynamic_command(
|
|
1483
1486
|
cmd_string=":SYSTem:SCAn:RATe:MINimum:HZ?",
|
|
@@ -1498,7 +1501,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1498
1501
|
< 1.525e-4
|
|
1499
1502
|
"""
|
|
1500
1503
|
|
|
1501
|
-
|
|
1504
|
+
raise NotImplementedError
|
|
1502
1505
|
|
|
1503
1506
|
@dynamic_command(
|
|
1504
1507
|
cmd_string=":SYSTem:TIME?",
|
|
@@ -1522,7 +1525,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1522
1525
|
< 15:31:45
|
|
1523
1526
|
"""
|
|
1524
1527
|
|
|
1525
|
-
|
|
1528
|
+
raise NotImplementedError
|
|
1526
1529
|
|
|
1527
1530
|
@dynamic_command(
|
|
1528
1531
|
cmd_string=":SYSTem:TZONe?",
|
|
@@ -1544,9 +1547,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1544
1547
|
< 4, -45
|
|
1545
1548
|
"""
|
|
1546
1549
|
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
pass
|
|
1550
|
+
raise NotImplementedError
|
|
1550
1551
|
|
|
1551
1552
|
@dynamic_command(
|
|
1552
1553
|
cmd_string=":SYSTem:TZONe ${hour},${minute}",
|
|
@@ -1570,7 +1571,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1570
1571
|
> :SYST:TZON 4,-45
|
|
1571
1572
|
"""
|
|
1572
1573
|
|
|
1573
|
-
|
|
1574
|
+
raise NotImplementedError
|
|
1574
1575
|
|
|
1575
1576
|
# CONFigure Sub-System Commands
|
|
1576
1577
|
|
|
@@ -1611,7 +1612,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1611
1612
|
> :CONF:RES (@1,2,8:46)
|
|
1612
1613
|
"""
|
|
1613
1614
|
|
|
1614
|
-
|
|
1615
|
+
raise NotImplementedError
|
|
1615
1616
|
|
|
1616
1617
|
@dynamic_command(
|
|
1617
1618
|
cmd_string=":CONFigure:TEMPerature:RTD ${rtd_type},${channels}",
|
|
@@ -1677,7 +1678,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1677
1678
|
< 0
|
|
1678
1679
|
"""
|
|
1679
1680
|
|
|
1680
|
-
|
|
1681
|
+
raise NotImplementedError
|
|
1681
1682
|
|
|
1682
1683
|
@dynamic_command(
|
|
1683
1684
|
cmd_string=":CONFigure:TEMPerature:TCouple ${tc_type}, ${channels}",
|
|
@@ -1734,7 +1735,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1734
1735
|
< 0
|
|
1735
1736
|
"""
|
|
1736
1737
|
|
|
1737
|
-
|
|
1738
|
+
raise NotImplementedError
|
|
1738
1739
|
|
|
1739
1740
|
@dynamic_command(
|
|
1740
1741
|
cmd_string=":CONFigure:VOLTage ${channels}",
|
|
@@ -1767,7 +1768,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1767
1768
|
> :CONF:VOLT (@1,2,8:46)
|
|
1768
1769
|
"""
|
|
1769
1770
|
|
|
1770
|
-
|
|
1771
|
+
raise NotImplementedError
|
|
1771
1772
|
|
|
1772
1773
|
@dynamic_command(
|
|
1773
1774
|
cmd_string=":CONFigure:VOLTage:RANGe ${voltage_range},${channels}",
|
|
@@ -1838,7 +1839,8 @@ class DigilentInterface(DeviceInterface):
|
|
|
1838
1839
|
"""
|
|
1839
1840
|
|
|
1840
1841
|
# TODO Only for VOLTpoint + MEASURpoint
|
|
1841
|
-
|
|
1842
|
+
|
|
1843
|
+
raise NotImplementedError
|
|
1842
1844
|
|
|
1843
1845
|
@dynamic_command(
|
|
1844
1846
|
cmd_string=":CONFigure? ${channels}",
|
|
@@ -1874,7 +1876,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1874
1876
|
< RAW
|
|
1875
1877
|
"""
|
|
1876
1878
|
|
|
1877
|
-
|
|
1879
|
+
raise NotImplementedError
|
|
1878
1880
|
|
|
1879
1881
|
@dynamic_command(
|
|
1880
1882
|
cmd_string=":CONFigure:FILTer ${filter_type}",
|
|
@@ -1894,7 +1896,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1894
1896
|
filter_type (str): Filter type to be used for the analogue input operations.
|
|
1895
1897
|
"""
|
|
1896
1898
|
|
|
1897
|
-
|
|
1899
|
+
raise NotImplementedError
|
|
1898
1900
|
|
|
1899
1901
|
@dynamic_command(
|
|
1900
1902
|
cmd_string=":CONFigure:FILTer?",
|
|
@@ -1927,7 +1929,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1927
1929
|
< RAW
|
|
1928
1930
|
"""
|
|
1929
1931
|
|
|
1930
|
-
|
|
1932
|
+
raise NotImplementedError
|
|
1931
1933
|
|
|
1932
1934
|
@dynamic_command(
|
|
1933
1935
|
cmd_string=":CONFigure:SCAn:BUFfer?",
|
|
@@ -1955,7 +1957,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1955
1957
|
< 1048576
|
|
1956
1958
|
"""
|
|
1957
1959
|
|
|
1958
|
-
|
|
1960
|
+
raise NotImplementedError
|
|
1959
1961
|
|
|
1960
1962
|
@dynamic_command(
|
|
1961
1963
|
cmd_string=":CONFigure:SCAn:CJC ${cjc}",
|
|
@@ -1993,7 +1995,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
1993
1995
|
< 1
|
|
1994
1996
|
"""
|
|
1995
1997
|
|
|
1996
|
-
|
|
1998
|
+
raise NotImplementedError
|
|
1997
1999
|
|
|
1998
2000
|
@dynamic_command(
|
|
1999
2001
|
cmd_string=":CONFigure:SCAn:CJC?",
|
|
@@ -2034,7 +2036,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
2034
2036
|
< 1
|
|
2035
2037
|
"""
|
|
2036
2038
|
|
|
2037
|
-
|
|
2039
|
+
raise NotImplementedError
|
|
2038
2040
|
|
|
2039
2041
|
@dynamic_command(
|
|
2040
2042
|
cmd_string=":CONFigure:SCAn:LISt ${channels}",
|
|
@@ -2074,7 +2076,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
2074
2076
|
< (@0,4:7)
|
|
2075
2077
|
"""
|
|
2076
2078
|
|
|
2077
|
-
|
|
2079
|
+
raise NotImplementedError
|
|
2078
2080
|
|
|
2079
2081
|
@dynamic_command(
|
|
2080
2082
|
cmd_string=":CONFigure:SCAn:LISt?",
|
|
@@ -2109,7 +2111,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
2109
2111
|
< (@0,4:7)
|
|
2110
2112
|
"""
|
|
2111
2113
|
|
|
2112
|
-
|
|
2114
|
+
raise NotImplementedError
|
|
2113
2115
|
|
|
2114
2116
|
@dynamic_command(
|
|
2115
2117
|
cmd_string=":CONFigure:SCAn:RATe:SEC ${rate}",
|
|
@@ -2179,7 +2181,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
2179
2181
|
< 0
|
|
2180
2182
|
"""
|
|
2181
2183
|
|
|
2182
|
-
|
|
2184
|
+
raise NotImplementedError
|
|
2183
2185
|
|
|
2184
2186
|
@dynamic_command(
|
|
2185
2187
|
cmd_string=":CONFigure:SCAn:RATe:SEC?",
|
|
@@ -2189,7 +2191,8 @@ class DigilentInterface(DeviceInterface):
|
|
|
2189
2191
|
)
|
|
2190
2192
|
def get_scan_rate(self) -> float:
|
|
2191
2193
|
"""Returns the time period of each scan [s]."""
|
|
2192
|
-
|
|
2194
|
+
|
|
2195
|
+
raise NotImplementedError
|
|
2193
2196
|
|
|
2194
2197
|
@dynamic_command(
|
|
2195
2198
|
cmd_string=":CONFigure:SCAn:RATe:HZ?",
|
|
@@ -2237,7 +2240,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
2237
2240
|
< 0
|
|
2238
2241
|
"""
|
|
2239
2242
|
|
|
2240
|
-
|
|
2243
|
+
raise NotImplementedError
|
|
2241
2244
|
|
|
2242
2245
|
@dynamic_command(
|
|
2243
2246
|
cmd_string=":CONFigure:TRIGger:SOURce ${source}",
|
|
@@ -2262,7 +2265,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
2262
2265
|
> :CONF:TRIG DIN0
|
|
2263
2266
|
"""
|
|
2264
2267
|
|
|
2265
|
-
|
|
2268
|
+
raise NotImplementedError
|
|
2266
2269
|
|
|
2267
2270
|
@dynamic_command(
|
|
2268
2271
|
cmd_string=":CONFigure:TRIGger:SOURce?",
|
|
@@ -2287,7 +2290,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
2287
2290
|
< DIN0
|
|
2288
2291
|
"""
|
|
2289
2292
|
|
|
2290
|
-
|
|
2293
|
+
raise NotImplementedError
|
|
2291
2294
|
|
|
2292
2295
|
# MEASure Sub-System Commands
|
|
2293
2296
|
|
|
@@ -2324,7 +2327,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
2324
2327
|
in the given list of channels [Ohm].
|
|
2325
2328
|
"""
|
|
2326
2329
|
|
|
2327
|
-
|
|
2330
|
+
raise NotImplementedError
|
|
2328
2331
|
|
|
2329
2332
|
@dynamic_command(
|
|
2330
2333
|
cmd_type=CommandType.TRANSACTION,
|
|
@@ -2382,7 +2385,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
2382
2385
|
- 0a = carriage return; this is the standard ASCII terminator
|
|
2383
2386
|
"""
|
|
2384
2387
|
|
|
2385
|
-
|
|
2388
|
+
raise NotImplementedError
|
|
2386
2389
|
|
|
2387
2390
|
@dynamic_command(
|
|
2388
2391
|
cmd_type=CommandType.TRANSACTION,
|
|
@@ -2433,7 +2436,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
2433
2436
|
- 0a = carriage return; this is the standard ASCII terminator
|
|
2434
2437
|
"""
|
|
2435
2438
|
|
|
2436
|
-
|
|
2439
|
+
raise NotImplementedError
|
|
2437
2440
|
|
|
2438
2441
|
@dynamic_command(
|
|
2439
2442
|
cmd_type=CommandType.TRANSACTION,
|
|
@@ -2470,6 +2473,8 @@ class DigilentInterface(DeviceInterface):
|
|
|
2470
2473
|
- 0a = carriage return; this is the standard ASCII terminator
|
|
2471
2474
|
"""
|
|
2472
2475
|
|
|
2476
|
+
raise NotImplementedError
|
|
2477
|
+
|
|
2473
2478
|
# INITiate Sub-System Command
|
|
2474
2479
|
|
|
2475
2480
|
@dynamic_command(
|
|
@@ -2525,7 +2530,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
2525
2530
|
< 0
|
|
2526
2531
|
"""
|
|
2527
2532
|
|
|
2528
|
-
|
|
2533
|
+
raise NotImplementedError
|
|
2529
2534
|
|
|
2530
2535
|
# ABORt Sub-System Command
|
|
2531
2536
|
|
|
@@ -2573,7 +2578,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
2573
2578
|
< 0
|
|
2574
2579
|
"""
|
|
2575
2580
|
|
|
2576
|
-
|
|
2581
|
+
raise NotImplementedError
|
|
2577
2582
|
|
|
2578
2583
|
# FETCh Sub-System Command
|
|
2579
2584
|
|
|
@@ -2652,7 +2657,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
2652
2657
|
0a Carriage Return. This is the standard SCPI Terminator.
|
|
2653
2658
|
"""
|
|
2654
2659
|
|
|
2655
|
-
|
|
2660
|
+
raise NotImplementedError
|
|
2656
2661
|
|
|
2657
2662
|
# Digital INPut Sub-System Command
|
|
2658
2663
|
|
|
@@ -2679,7 +2684,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
2679
2684
|
< 130
|
|
2680
2685
|
"""
|
|
2681
2686
|
|
|
2682
|
-
|
|
2687
|
+
raise NotImplementedError
|
|
2683
2688
|
|
|
2684
2689
|
# Digital OUTPut Sub-System Commands
|
|
2685
2690
|
|
|
@@ -2706,7 +2711,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
2706
2711
|
< 130
|
|
2707
2712
|
"""
|
|
2708
2713
|
|
|
2709
|
-
|
|
2714
|
+
raise NotImplementedError
|
|
2710
2715
|
|
|
2711
2716
|
@dynamic_command(
|
|
2712
2717
|
cmd_string=":OUTPut:STATe ${state}",
|
|
@@ -2733,7 +2738,7 @@ class DigilentInterface(DeviceInterface):
|
|
|
2733
2738
|
> :OUTPut:STATe 129
|
|
2734
2739
|
"""
|
|
2735
2740
|
|
|
2736
|
-
|
|
2741
|
+
raise NotImplementedError
|
|
2737
2742
|
|
|
2738
2743
|
|
|
2739
2744
|
class DigilentController(DigilentInterface, DynamicCommandMixin):
|
|
@@ -100,7 +100,7 @@ class DigilentEthernetInterface(DeviceConnectionInterface, DeviceTransport):
|
|
|
100
100
|
self._is_connection_open = True
|
|
101
101
|
|
|
102
102
|
# Check that we are connected to the controller by issuing the "VERSION" or
|
|
103
|
-
# "*
|
|
103
|
+
# "*IDN?" query. If we don't get the right response, then disconnect automatically.
|
|
104
104
|
|
|
105
105
|
if not self.is_connected():
|
|
106
106
|
raise DeviceConnectionError(
|
|
@@ -157,7 +157,7 @@ class DigilentEthernetInterface(DeviceConnectionInterface, DeviceTransport):
|
|
|
157
157
|
|
|
158
158
|
if "Data Translation" not in manufacturer or "DT" not in model:
|
|
159
159
|
logger.error(
|
|
160
|
-
f
|
|
160
|
+
f"Device did not respond correctly to a {IDENTIFICATION_QUERY} command, manufacturer={manufacturer}, model={model}. Disconnecting..."
|
|
161
161
|
)
|
|
162
162
|
self.disconnect()
|
|
163
163
|
return False
|
|
@@ -187,7 +187,7 @@ class DigilentEthernetInterface(DeviceConnectionInterface, DeviceTransport):
|
|
|
187
187
|
raise DeviceConnectionError(self.device_name, "Socket communication error.") from e_socket
|
|
188
188
|
except AttributeError:
|
|
189
189
|
if not self._is_connection_open:
|
|
190
|
-
msg = "The
|
|
190
|
+
msg = "The DT8874 is not connected, use the connect() method."
|
|
191
191
|
raise DeviceConnectionError(self.device_name, msg)
|
|
192
192
|
raise
|
|
193
193
|
|
|
@@ -214,7 +214,7 @@ class DigilentEthernetInterface(DeviceConnectionInterface, DeviceTransport):
|
|
|
214
214
|
|
|
215
215
|
self._sock.sendall(command.encode())
|
|
216
216
|
|
|
217
|
-
# wait for, read and return the response from
|
|
217
|
+
# wait for, read and return the response from Digilent (will be at most TBD chars)
|
|
218
218
|
|
|
219
219
|
return_string = self.read()
|
|
220
220
|
|
|
@@ -68,6 +68,12 @@ def is_dt8874_cs_active(timeout: float = 0.5) -> bool:
|
|
|
68
68
|
|
|
69
69
|
class Dt8874ControlServer(ControlServer):
|
|
70
70
|
def __init__(self, simulator: bool = False):
|
|
71
|
+
"""Initialisation of a Digilent MEASURpoint DT8874 Control Server.
|
|
72
|
+
|
|
73
|
+
Args:
|
|
74
|
+
simulator (bool): Indicates whether to operate in simulator mode.
|
|
75
|
+
"""
|
|
76
|
+
|
|
71
77
|
super().__init__()
|
|
72
78
|
|
|
73
79
|
multiprocessing.current_process().name = PROCESS_NAME
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|