pynq.pmbus Module
- class pynq.pmbus.DataRecorder(*sensors)[source]
Bases:
objectClass to record sensors during an execution The DataRecorder provides a way of recording sensor data using a with block.
- property frame
Return a pandas DataFrame of the recorded data The frame consists of the following fields Index : The timestamp of the measurement Mark : counts the number of times that record or mark was called Sensors* : one column per sensor
- class pynq.pmbus.MultiSensor(sensors)[source]
Bases:
objectClass for efficiently collecting the readings from multiple sensors
- class pynq.pmbus.Rail(name)[source]
Bases:
objectBundles up to three sensors monitoring the same power rail
Represents a power rail in the system monitored by up to three sensors for voltage, current and power.
- name
Name of the power rail
- Type:
str
- class pynq.pmbus.Sensor(chip, number, unit, name)[source]
Bases:
objectInteracts with a sensor exposed by libsensors
The value of the sensor is determined by the unit of the underlying sensor API - that is generally Volts for potential difference, Amperes for current, Watts for power and degrees Centigrade for temperature
- name
The name of the sensor
- Type:
str
- value
The current value of the sensor
- Type:
float
- property value
Read the current value of the sensor
- pynq.pmbus.get_rails(config_file=None)[source]
Returns a dictionary of power rails
- Parameters:
config_file (str) – Path to a configuration file for libsensors to use in place of the the system-wide default
- Returns:
dict {str – Dictionary of power rails with the name of the rail as the key and a Rail object as the value
- Return type:
Rail}