pymepix.TPX4 package¶
Submodules¶
pymepix.TPX4.tpx4chipdevice module¶
- class pymepix.TPX4.tpx4chipdevice.Tpx4ChipDevice(_ctrl, device_num)[source]¶
Bases:
object
- property deviceId¶
Returns unique device Id
- Parameters:
spidr_ctrl (
SpidrController
) – SPIDR controller object the device belongs todevice_num – Device index from SPIDR (Starts from 1)
- property headerFilter¶
- property ipAddrDest¶
- property ipAddrSrc¶
- property linkStatus¶
- property serverPort¶
pymepix.TPX4.tpx4controller module¶
- class pymepix.TPX4.tpx4controller.Timepix4Controller(camera_ip_address, camera_udp_port)[source]¶
Bases:
object
- property boardFanSpeed¶
- property chipboardFanSpeed¶
- closeShutter()[source]¶
Immediately closes the shutter
- Raises:
PymePixException – Communication error
- property deviceCount¶
Returns devices count
- property fpgaTemperature¶
Temperature of FPGA board read from sensor
- Returns:
Temperature in Celsius
- Return type:
float
- Raises:
PymePixException – Communication error
- property humidity¶
Humidity read from sensor
- Returns:
Humidity as percentage
- Return type:
int
- Raises:
PymePixException – Communication error
- property localTemperature¶
Local ????!?!? Temperature read from sensor
- Returns:
Temperature in Celsius
- Return type:
float
- Raises:
PymePixException – Communication error
- openShutter()[source]¶
Immediately opens the shutter indefinitely
- Raises:
PymePixException – Communication error
Notes
This overwrites shutter configurations with one that forces an open shutter
- property pressure¶
Pressure read from sensor
- Returns:
Pressure in bar
- Return type:
int
- Raises:
PymePixException – Communication error
- property remoteTemperature¶
Remote ????!?!? Temperature read from sensor
- Returns:
Temperature in Celsius
- Return type:
float
- Raises:
PymePixException – Communication error
- resetTimers()[source]¶
Resets all timers to zero
Sets the internal 48-bit timers for all Timepix/Medipix devices to zero
- Raises:
PymePixException – Communication error
- restartTimers()[source]¶
Restarts SPIDR and Device timers
Synchronizes both the SPIDR clock and Timepix/Medipix clocks so both trigger and ToA timestamps match
Important
This must be done if event selection is required (e.g. time of flight) otherwise the timestamps will be offset
- Raises:
PymePixException – Communication error
- setBiasSupplyEnable(enable)[source]¶
Enables/Disables bias supply voltage
- Parameters:
enable (bool) – True - enables bias supply voltage False - disables bias supply voltage
- Raises:
PymePixException – Communication error
- setShutterTriggerConfig(mode, length_us, freq_hz, count, delay_ns=0)[source]¶
Set the shutter configuration in one go
- Parameters:
mode (int) – Shutter trigger mode
length_us (int) – Shutter open time in microseconds
freq_hz (int) – Auto trigger frequency in Hertz
count (int) – Number of triggers
delay_ns (int, optional) – Delay between each trigger (Default: 0)
- Raises:
PymePixException – Communication error