licel_SP32¶
class for interfacing with the Licel SP32 over TCP/IP.
- class Licel.licel_SP32.SP32(ethernetController: licel_tcpip.EthernetController)¶
- closeShutter() str¶
Close the mechanical shutter of the spectrometer. This command is available as an option.
- Returns:
controller response
- Return type:
str
- disablePretrigger() str¶
Disable the pretrigger
- enablePretrigger() str¶
Enable the pretrigger for a
- getCapabilites() str¶
get capabilities of the SP32 controller
- Returns:
controller capabilities.
- Return type:
str
- getCurrent() str¶
get current settings of the SP32 controller Explicitely return the ADC value of the on board high voltage supply current sensor
- Returns:
controller current settings.
- Return type:
str
- getData() tuple[int, ndarray[Any, dtype[uint32]]]¶
get acquired data from the SP32 controller
- Returns:
acquired data from the controller
- Return type:
str
- getDieTemperature() str¶
get die temperature of the SP32 controller
- Returns:
controller die temperature in degree Celsius.
- Return type:
str
- getHV() str¶
get Voltage of the pmt
- Returns:
controller response containing the pmt high voltage
- Return type:
str
- getHardwareID() str¶
get hardware ID of the SP32 controller
- Returns:
controller hardware ID and setting. the response is
structured as follows:
HW: HWREV BINLEN MAXRANGEBINS BINSIZE MAXSHOTS ENDIANNESS PUSH: MAXPUSHSHOTS CMPFACTOR VARCOMP VARTRACE CURRENTRANGEBINS MAXBINLEN HIGHRES: MINBINLEN MINRANGEBINS WIDEMEM
- Return type:
str
- getPCBTemperature() str¶
get the PCB board temperature of the SP32 controller
- Returns:
controller PCB board temperature in degree Celsius.
- Return type:
str
- getShutterPosition() str¶
Requst the current position of the mechanical shutter. This command is available as an option.
- Returns:
controller response
- Return type:
str
- getStatus() tuple[str, int, int, float, float]¶
Returns the current status of the controller. The format of the reply is : RUN: AcqStatus, ShotNum Shots of TargetShotNum Current Timestamp
AcqStatus is the acquisition status of the detector, which can be either 0 (Idle),1 (Armed), or 2 (Acquiring).
ShotNum is the current shots acquired.
TargetShotNum is the target shots to acquire set by the START command.
Current is the ADC value of the on board high voltage supply current sensor.
Timestamp in milliseconds (accurate to micro seconds) since powering on the controller.
An example reply would be: Run: 2, 10 Shots of 100 65535 9070.000000
- Returns:
controller response
- Return type:
str
- openShutter() str¶
Opens the mechanical shutter of the spectrometer. This command is available as an option.
- Returns:
controller response
- Return type:
str
- saveSP32Data(Config: licel_SP32_Config.SP32_Config, starttime: datetime, stoptime: datetime, prefix: str, shots: int, data: ndarray[Any, dtype[uint32]]) None¶
save acquired data to a licel file format
- Parameters:
filename (str) – name of the file to save the data
data (np.ndarray[Any, np.dtype[np.uint32]]) – acquired data from the controller
- Returns:
None
- Return type:
None
- setDiscriminator(disc: int) str¶
Sets the discriminator level of the detector. Valid values for the discriminator are 0–63
- Parameters:
disc (int) – discriminator level (0-63)
- Returns:
controller response
- Return type:
strs
- setHV(Voltage: int) str¶
set voltage for the pmt
- Parameters:
voltage (int) – desired pmt voltage in Volt
- Returns:
controller response
- Return type:
str
- setRange(Rangebins: int) str¶
set the number of rangebins the detector must acquire
- Parameters:
Rangebins (int) – desired Range
- Returns:
controller response
- Return type:
str
- setTimeResoultion(Resolution: float) str¶
set the resolution at which the detector must acquire the data. supported High resolution modes are multiple of 0.625ns up until 10ns. supported standard resolution modes are multiple of 10ns up until 10000ns.
- Parameters:
Resolution (float) – desired detector timing resolution
- Returns:
controller response
- Return type:
str
- startAcquisition(shots: int) str¶
Starts the data acquisition of the detector
- Parameters:
shots (int) – number of shots to acquire
- Returns:
controller response
- Return type:
str
- startInternalTrigger() str¶
Sets the trigger mode to internal
- Returns:
controller response
- Return type:
str
- stopAcquisition() str¶
Stops the data acquisition of the detector
- Returns:
controller response
- Return type:
str
- stopInternalTrigger() str¶
Sets the trigger mode to external
- Returns:
controller response
- Return type:
str