AvaSpec SDK¤
Wrapper around the avaspec SDK from Avantes.
The wrapper was written using v9.7.0.0 of the SDK. The avaspec SDK may require a Visual C++ Redistributable Package to be installed (on Windows).
The main class is AvaSpec and the Enums and Structs are available once the avantes module is imported, for example,
from msl.equipment.resources import avantes
cfg = avantes.MeasConfigType()
cfg.m_IntegrationTime = 5 # in milliseconds
cfg.m_NrAverages = 1 # number of averages
AvaSpec
(SDK)
¤
AvaSpec(equipment: Equipment)
flowchart LR
msl.equipment_resources.avantes.avaspec.AvaSpec[AvaSpec]
msl.equipment.interfaces.sdk.SDK[SDK]
msl.equipment.schema.Interface[Interface]
msl.equipment.interfaces.sdk.SDK --> msl.equipment_resources.avantes.avaspec.AvaSpec
msl.equipment.schema.Interface --> msl.equipment.interfaces.sdk.SDK
click msl.equipment_resources.avantes.avaspec.AvaSpec href "" "msl.equipment_resources.avantes.avaspec.AvaSpec"
click msl.equipment.interfaces.sdk.SDK href "" "msl.equipment.interfaces.sdk.SDK"
click msl.equipment.schema.Interface href "" "msl.equipment.schema.Interface"
Wrapper around the avaspec SDK from Avantes.
Regular-expression patterns that are used to select this Resource when connect() is called.
manufacturer=r"Avantes"
model=r""
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
equipment
|
Equipment
|
An Equipment instance. |
required |
A Connection instance supports the following properties for the AvaSpec wrapper.
Connection Properties:
| Name | Type | Description |
|---|---|---|
port_id |
int
|
One of |
activate |
bool
|
Whether to automatically activate the connection. Default: |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
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 | |
activate
¤
activate() -> None
Activates the spectrometer for communication.
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 | |
deactivate
¤
deactivate() -> None
Closes communication with the spectrometer.
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
997 998 999 1000 1001 1002 1003 | |
disconnect
¤
disconnect() -> None
Calls deactivate.
Also calls done (if there are no additional connections open to other spectrometers).
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1005 1006 1007 1008 1009 1010 1011 1012 1013 | |
done
¤
done() -> None
Closes communication with all spectrometers and releases internal storage.
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1015 1016 1017 1018 | |
find
staticmethod
¤
find(
path: str = "avaspecx64", port_id: int = -1, nmax: int = 16
) -> list[AvsIdentityType]
Returns device information for each spectrometer that is connected.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
The path to the AvaSpec SDK. |
'avaspecx64'
|
port_id
|
int
|
ID of port to be used. One of:
|
-1
|
nmax
|
int
|
The maximum number of devices that can be in the list. |
16
|
Returns:
| Type | Description |
|---|---|
list[AvsIdentityType]
|
The information about the devices. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 | |
get_analog_in
¤
Get the status of the specified analog input.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
analog_id
|
int
|
The identifier of the analog input to get.
|
required |
Returns:
| Type | Description |
|---|---|
float
|
The analog input value [Volts or degrees Celsius]. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 | |
get_com_port_name
¤
get_com_port_name() -> str
Get the IP address of the device.
Returns:
| Type | Description |
|---|---|
str
|
The IP address of the device. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 | |
get_com_type
¤
get_com_type() -> int
Get the communication protocol.
Returns:
| Type | Description |
|---|---|
int
|
The communication type as defined below: * 0 = RS232 * 1 = USB5216 * 2 = USBMINI * 3 = USB7010 * 4 = ETH7010 * -1 = UNKNOWN |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 | |
get_dark_pixel_data
¤
Get the optically black pixel values of the last performed measurement.
You must call get_data before you call this method.
Returns:
| Type | Description |
|---|---|
NDArray[double]
|
The dark pixels. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 | |
get_data
¤
Returns the timestamp and the spectral data of the last measurement.
Returns:
| Type | Description |
|---|---|
tuple[int, NDArray[double]]
|
The timestamp and the spectral data. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 | |
get_digital_in
¤
Get the status of the specified digital input.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
digital_id
|
int
|
The identifier of the digital input to get.
|
required |
Returns:
| Type | Description |
|---|---|
int
|
The digital input value. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 | |
get_dll_version
¤
get_dll_version() -> str
Get the DLL version number.
Returns:
| Type | Description |
|---|---|
str
|
The DLL version number |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1191 1192 1193 1194 1195 1196 1197 1198 1199 | |
get_handle_from_serial
¤
Get the handle ID for the specified serial number.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
serial
|
str | None
|
The serial number. Default is to get the handle for this class instance. |
None
|
Returns:
| Type | Description |
|---|---|
int
|
The handle. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 | |
get_ip_config
¤
get_ip_config() -> EthernetSettingsType
Retrieve IP settings from the spectrometer.
Use this function to read the Ethernet settings of the spectrometer, without having to read the complete device configuration structure.
Returns:
| Type | Description |
|---|---|
EthernetSettingsType
|
The Ethernet settings of the spectrometer. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 | |
get_lambda
¤
Returns the wavelength values corresponding to the pixels if available.
Returns:
| Type | Description |
|---|---|
NDArray[double]
|
The wavelength value of each pixel. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1226 1227 1228 1229 1230 1231 1232 1233 1234 | |
get_num_devices
¤
get_num_devices() -> int
Scans for attached devices and returns the number of devices detected.
Deprecated function, replaced by :meth:.update_usb_devices. The
functionality is identical.
Returns:
| Type | Description |
|---|---|
int
|
The number of devices found. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 | |
get_num_pixels
¤
get_num_pixels() -> int
Returns the number of pixels of a spectrometer.
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1248 1249 1250 1251 1252 | |
get_oem_parameter
¤
get_oem_parameter() -> OemDataType
Returns the OEM data structure available on the spectrometer.
Returns:
| Type | Description |
|---|---|
OemDataType
|
The OEM parameters. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1254 1255 1256 1257 1258 1259 1260 1261 1262 | |
get_parameter
¤
get_parameter() -> DeviceConfigType
Returns the device information of the spectrometer.
Returns:
| Type | Description |
|---|---|
DeviceConfigType
|
The device parameters. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 | |
get_saturated_pixels
¤
Returns, for each pixel, if a pixel was saturated (1) or not (0).
Returns:
| Type | Description |
|---|---|
NDArray[uint8]
|
The saturation state of each pixel. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 | |
get_status_by_serial
¤
Get the handle ID for the specified serial number.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
serial
|
str | None
|
The serial number. Default is to get the status for this class instance. |
None
|
Returns:
| Type | Description |
|---|---|
int
|
The status. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 | |
get_version_info
¤
Returns software version information.
Returns:
| Type | Description |
|---|---|
tuple[str, str, str]
|
FPGA software version, firmware version, DLL version. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 | |
heartbeat
¤
heartbeat(req_type: int) -> HeartbeatRespType
Monitor the (heartbeat) functions of the spectrometer.
This function applies only to the AS7010 platform. See the DLL manual for more details.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
req_type
|
int
|
The heartbeat request values used to control heartbeat functions. |
required |
Returns:
| Type | Description |
|---|---|
HeartbeatRespType
|
The heartbeat response structure received from the spectrometer. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 | |
init
¤
Initializes the communication interface with the spectrometers and the internal data structures.
For Ethernet devices this function will create a list of available Ethernet spectrometers within all the network interfaces of the host.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
port_id
|
int
|
ID of port to be used. One of:
|
required |
Returns:
| Type | Description |
|---|---|
int
|
On success, the number of connected or found devices. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 | |
measure
¤
Starts measurement on the spectrometer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num_measurements
|
int
|
Number of measurements to acquire. Use -1 to measure continuously until stop_measure is called. |
required |
window_handle
|
int | None
|
Window handle to notify application measurement result data is available.
The DLL sends a message to the window with command: |
None
|
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 | |
measure_callback
¤
measure_callback(
num_measurements: int, callback: AvaSpecCallback | None = None
) -> None
Register a measurement-available callback function for the spectrometer.
Example
See avaspec_callback.py for an example usage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num_measurements
|
int
|
Number of measurements to acquire. Use -1 to measure continuously until stop_measure is called. |
required |
callback
|
AvaSpecCallback | None
|
A callback function to notify that application measurement result data is available.
The DLL will call the given function to notify a measurement is ready and pass two parameters.
The first parameter is a reference to the DLL handle. The second parameter is a reference to
an integer value: |
None
|
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 | |
poll_scan
¤
poll_scan() -> bool
Determines if new measurement results are available.
Returns:
| Type | Description |
|---|---|
bool
|
Whether there is a scan available. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1384 1385 1386 1387 1388 1389 1390 | |
prepare_measure
¤
prepare_measure(config: MeasConfigType) -> None
Prepares measurement on the spectrometer using the specified measurement configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
MeasConfigType
|
The measurement configuration. |
required |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1392 1393 1394 1395 1396 1397 1398 | |
register
¤
register(handle: int) -> None
Installs an application windows handle to which device attachment/removal messages have to be sent.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
handle
|
int
|
Application window handle. |
required |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1400 1401 1402 1403 1404 1405 1406 | |
reset_device
¤
reset_device() -> None
Performs a hard reset on the given spectrometer.
This function only works with the AS7010 platform.
During reset of the spectrometer, all spectrometer HW modules (microprocessor and USB controller) will be reset at once. The spectrometer will start its reset procedure right after sending the command response back to the host.
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 | |
set_analog_out
¤
Sets the analog output value for the specified analog identifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
port_id
|
int
|
Identifier for one of the two output signals:
|
required |
value
|
float
|
DAC value to be set in Volts (internally an 8-bits DAC is used) with range 0 - 5V. |
required |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 | |
set_digital_out
¤
Sets the digital output value for the specified digital identifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
port_id
|
int
|
Identifier for one of the 10 output signals:
|
required |
value
|
int
|
The digital value to be set (0 or 1). |
required |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 | |
set_oem_parameter
¤
set_oem_parameter(parameter: OemDataType) -> None
Sends the OEM data structure to the spectrometer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
parameter
|
OemDataType
|
The OEM data structure. |
required |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1493 1494 1495 1496 1497 1498 1499 | |
set_parameter
¤
set_parameter(parameter: DeviceConfigType) -> None
Overwrites the device configuration.
Please note that OemDataType is part of the DeviceConfigType in EEPROM (see section 3.5 of DLL manual). Precautions must be taken to prevent OEM data overwrites when using this method together with set_oem_parameter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
parameter
|
DeviceConfigType
|
The device parameters. |
required |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 | |
set_prescan_mode
¤
set_prescan_mode(mode: bool) -> None
If a prescan is set, the first measurement result will be skipped.
This function is only useful for the AvaSpec-3648 because this detector can be operated in prescan mode, or clear-buffer mode (see DLL manual).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mode
|
bool
|
If |
required |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 | |
set_pwm_out
¤
Selects the PWM functionality for the specified digital output.
The PWM functionality is not supported on the Mini.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
port_id
|
int
|
Identifier for one of the 6 PWM output signals:
|
required |
frequency
|
int
|
Desired PWM frequency (500 - 300000) [Hz]. For the AS5216, the frequency of outputs 0, 1 and 2 is the same (the last specified frequency is used) and also the frequency of outputs 4, 5 and 6 is the same. For the AS7010, you can define six different frequencies. |
required |
duty_cycle
|
int
|
Percentage high time in one cycle (0 - 100). For the AS5216, channels 0, 1 and 2 have a synchronized rising edge, the same holds for channels 4, 5 and 6. For the AS7010, rising edges are unsynchronized. |
required |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 | |
set_sensitivity_mode
¤
set_sensitivity_mode(mode: int) -> None
Set the sensitivity mode.
This method is supported by the following detector types: HAMS9201, HAMG9208_512, SU256LSB and SU512LDB with the appropriate firmware version.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mode
|
int
|
0 for low noise, >0 for high sensitivity |
required |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 | |
set_sync_mode
¤
set_sync_mode(enable: bool) -> None
Disables/enables support for synchronous measurement.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
enable
|
bool
|
|
required |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1563 1564 1565 1566 1567 1568 1569 | |
stop_measure
¤
stop_measure() -> None
Stops the measurement.
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1571 1572 1573 | |
suppress_stray_light
¤
Returns the stray light corrected pixel values of a dark corrected measurement.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
factor
|
float
|
Multiplication factor for the stray light algorithm. |
required |
Returns:
| Type | Description |
|---|---|
tuple[NDArray[double], NDArray[double]]
|
Scope minus dark array, stray light suppressed array. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 | |
update_eth_devices
¤
update_eth_devices(nmax: int = 16) -> list[BroadcastAnswerType]
Return the number of Ethernet devices that are connected to the computer.
Internally checks the list of connected Ethernet devices and returns the number of devices attached.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
nmax
|
int
|
The maximum number of devices that can be found. |
16
|
Returns:
| Type | Description |
|---|---|
list[BroadcastAnswerType]
|
The information about the devices. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 | |
update_usb_devices
¤
update_usb_devices() -> int
Return the number of USB devices that are connected to the computer.
Internally checks the list of connected USB devices and returns the number of devices attached.
Returns:
| Type | Description |
|---|---|
int
|
The number of devices found. |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1609 1610 1611 1612 1613 1614 1615 1616 1617 | |
use_high_res_adc
¤
use_high_res_adc(enable: bool) -> None
Enable the 16-bit AD converter.
When using the 16 bit ADC in full High Resolution mode (0..65535), please note that the irradiance intensity calibration, as well as the nonlinearity calibration are based on the 14bit ADC range. Therefore, if using the nonlinearity correction or irradiance calibration in your own software using the High Resolution mode, you need to apply the additional correction with ADCFactor (= 4.0), as explained in detail in section 4.6.1 and 4.6.3 of the manual.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
enable
|
bool
|
If |
required |
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 | |
Enums and Structs¤
Wrapper around the avaspec SDK from Avantes.
MeasureCallback
module-attribute
¤
CFUNCTYPE function prototype to use when a measurement scan is available.
DetectorType
(Structure)
¤
DetectorType Structure.
Attributes:
| Name | Type | Description |
|---|---|---|
m_SensorType |
c_ubyte
|
m_SensorType |
m_NrPixels |
c_uint16
|
m_NrPixels |
m_aFit |
c_float * 5
|
m_aFit |
m_NLEnable |
c_bool
|
m_NLEnable |
m_aNLCorrect |
c_double * 8
|
m_aNLCorrect |
m_aLowNLCounts |
c_double
|
m_aLowNLCounts |
m_aHighNLCounts |
c_double
|
m_aHighNLCounts |
m_Gain |
c_float * 2
|
m_Gain |
m_Reserved |
c_float
|
m_Reserved |
m_Offset |
c_float * 2
|
m_Offset |
m_ExtOffset |
c_float
|
m_ExtOffset |
m_DefectivePixels |
c_uint16 * 30
|
m_DefectivePixels |
DeviceConfigType
(Structure)
¤
DeviceConfigType Structure.
Attributes:
| Name | Type | Description |
|---|---|---|
m_Len |
c_uint16
|
m_Len |
m_ConfigVersion |
c_uint16
|
m_ConfigVersion |
m_aUserFriendlyId |
c_char * 64
|
m_aUserFriendlyId |
m_Detector |
DetectorType
|
m_Detector |
m_Irradiance |
IrradianceType
|
m_Irradiance |
m_Reflectance |
SpectrumCalibrationType
|
m_Reflectance |
m_SpectrumCorrect |
SpectrumCorrectionType
|
m_SpectrumCorrect |
m_StandAlone |
StandAloneType
|
m_StandAlone |
m_DynamicStorage |
DynamicStorageType
|
m_DynamicStorage |
m_aTemperature |
TempSensorType * 3
|
m_aTemperature |
m_TecControl |
TecControlType
|
m_TecControl |
m_ProcessControl |
ProcessControlType
|
m_ProcessControl |
m_EthernetSettings |
EthernetSettingsType
|
m_EthernetSettings |
m_aReserved |
c_ubyte * 9720
|
m_aReserved |
m_OemData |
OemDataType
|
m_OemData |
IrradianceType
(Structure)
¤
IrradianceType Structure.
Attributes:
| Name | Type | Description |
|---|---|---|
m_IntensityCalib |
SpectrumCalibrationType
|
m_IntensityCalib |
m_CalibrationType |
c_ubyte
|
m_CalibrationType |
m_FiberDiameter |
c_uint32
|
m_FiberDiameter |
MeasConfigType
(Structure)
¤
MeasConfigType Structure.
Attributes:
| Name | Type | Description |
|---|---|---|
m_StartPixel |
c_uint16
|
m_StartPixel |
m_StopPixel |
c_uint16
|
m_StopPixel |
m_IntegrationTime |
c_float
|
m_IntegrationTime |
m_IntegrationDelay |
c_uint32
|
m_IntegrationDelay |
m_NrAverages |
c_uint32
|
m_NrAverages |
m_CorDynDark |
DarkCorrectionType
|
m_CorDynDark |
m_Smoothing |
SmoothingType
|
m_Smoothing |
m_SaturationDetection |
c_ubyte
|
m_SaturationDetection |
m_Trigger |
TriggerType
|
m_Trigger |
m_Control |
ControlSettingsType
|
m_Control |
SensType
(IntEnum)
¤
SensType enum.
Attributes:
| Name | Type | Description |
|---|---|---|
SENS_HAMS8378_256 |
int
|
1 |
SENS_HAMS8378_1024 |
int
|
2 |
SENS_ILX554 |
int
|
3 |
SENS_HAMS9201 |
int
|
4 |
SENS_TCD1304 |
int
|
5 |
SENS_TSL1301 |
int
|
6 |
SENS_TSL1401 |
int
|
7 |
SENS_HAMS8378_512 |
int
|
8 |
SENS_HAMS9840 |
int
|
9 |
SENS_ILX511 |
int
|
10 |
SENS_HAMS10420_2048X64 |
int
|
11 |
SENS_HAMS11071_2048X64 |
int
|
12 |
SENS_HAMS7031_1024X122 |
int
|
13 |
SENS_HAMS7031_1024X58 |
int
|
14 |
SENS_HAMS11071_2048X16 |
int
|
15 |
SENS_HAMS11155_2048 |
int
|
16 |
SENS_SU256LSB |
int
|
17 |
SENS_SU512LDB |
int
|
18 |
SENS_HAMS11638 |
int
|
21 |
SENS_HAMS11639 |
int
|
22 |
SENS_HAMS12443 |
int
|
23 |
SENS_HAMG9208_512 |
int
|
24 |
SENS_HAMG13913 |
int
|
25 |
SENS_HAMS13496 |
int
|
26 |
SpectrumCalibrationType
(Structure)
¤
SpectrumCalibrationType Structure.
Attributes:
| Name | Type | Description |
|---|---|---|
m_Smoothing |
SmoothingType
|
m_Smoothing |
m_CalInttime |
c_float
|
m_CalInttime |
m_aCalibConvers |
c_float * 4096
|
m_aCalibConvers |
SpectrumCorrectionType
(Structure)
¤
SpectrumCorrectionType Structure.
Attributes:
| Name | Type | Description |
|---|---|---|
m_aSpectrumCorrect |
c_float * 4096
|
m_aSpectrumCorrect |
StandAloneType
(Structure)
¤
StandAloneType Structure.
Attributes:
| Name | Type | Description |
|---|---|---|
m_Enable |
c_bool
|
m_Enable |
m_Meas |
MeasConfigType
|
m_Meas |
m_Nmsr |
c_int16
|
m_Nmsr |
avaspec_callback
¤
avaspec_callback(f: AvaSpecCallback) -> _CFunctionType
Use as a decorator for a callback function when a measurement scan is available.
See avaspec_callback.py for an example usage.
Source code in packages/resources/src/msl/equipment_resources/avantes/avaspec.py
62 63 64 65 66 67 68 | |