mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 03:10:02 +02:00
14 lines
317 B
Python
14 lines
317 B
Python
from slsdet import Detector, Eiger, dacIndex
|
|
|
|
|
|
|
|
#Using the general detector class and calling with an index
|
|
d = Detector()
|
|
fpga_temp = d.getTemperature(dacIndex.TEMPERATURE_FPGA)
|
|
print(f'fpga_temp: {fpga_temp}\n')
|
|
|
|
#Using the specialized detector class
|
|
e = Eiger()
|
|
print("All temperatures for Eiger\n")
|
|
print(e.temp)
|