module cc100.cc100_v1
Generic superclass for the older CC100 generation.
Global Variables
- LOG_FILE
class CC100_v1
method __init__
__init__()
method analogWrite
analogWrite(output: int, voltage: int, module: str) → bool
Switch the output to the specified voltage.
Return False if analog output does not exist, else return True.
output: Analog output to be switched voltage: Voltage which the selected output should be set to
method calcCalibrate
calcCalibrate(val_uncal: int, calib: int) → int
Calculate the value of the voltage for the required output.
val_uncal: uncalibrated value calib: calibration data
method calibrateIn
calibrateIn(value: int, input: int) → int
Convert value read at analog input to mV and return it.
value: Value given for the file from the output input: Input at which the value was read
method calibrateOut
calibrateOut(voltage: int, output: int) → int
Calibrate and return voltage to be applied to analog output.
voltage: Voltage to be applied to the output. output: Output which should be switched
method calibrateTemp
calibrateTemp(value: int, input: int) → float
Calibrate and return temperature read at PT input in °C.
value: Value given for the file from the output input: Input at which the value was read
method getCalibrationData
getCalibrationData(value: int) → list[str]
Return the calibration data for the required row of the table.
value: the row to read
method get_read_once_paths
get_read_once_paths() → tuple[str]
method get_read_paths
get_read_paths() → tuple[str]
method get_write_paths
get_write_paths() → tuple[str]
method init_fds
init_fds()
Get system file descriptors for the CC100 v1.
method read_inputs
read_inputs()
Read compact controller inputs.
method reset
reset() → None
Reset the output interfaces and close the file descriptors.
method write_outputs
write_outputs()
Write compact controller outputs from output image.
Return all state variables that should be fed into the function the next time. Also set the input image to the new value to avoid reading every new cycle.
This file was automatically generated via lazydocs.