dummy_temperature_controller
frog.hardware.plugins.temperature.dummy_temperature_controller
¤
Provides a dummy TC4820 device.
Classes¤
DummyTemperatureController(name, temperature_params=NoiseParameters(35.0, 0.1), power_params=NoiseParameters(40.0, 2.0), alarm_status=0, initial_set_point=Decimal(70))
¤
Bases: TemperatureControllerBase
A dummy temperature controller device which produces random noise.
Create a new DummyTemperatureController.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name of the device, to distinguish it from others |
required |
temperature_params
|
NoiseParameters
|
The parameters for temperature's NoiseProducer |
NoiseParameters(35.0, 0.1)
|
power_params
|
NoiseParameters
|
The parameters for power's NoiseProducer |
NoiseParameters(40.0, 2.0)
|
alarm_status
|
int
|
The value of the alarm status used forever (0 is no error) |
0
|
initial_set_point
|
Decimal
|
What the temperature set point is initially |
Decimal(70)
|
Source code in frog/hardware/plugins/temperature/dummy_temperature_controller.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
Attributes¤
alarm_status
property
¤
The current error status of the system.
A value of zero indicates that no error has occurred.
power
property
¤
The current power output of the device.
set_point
property
writable
¤
The set point temperature (in degrees).
In other words, this indicates the temperature the device is aiming towards.
temperature
property
¤
The current temperature reported by the device.