| Qudi
    | 
Control a process via software PID. More...


| Public Member Functions | |
| def | __init__ (self, config, kwargs) | 
| def | on_activate (self) | 
| Initialisation performed during activation of the module. | |
| def | on_deactivate (self) | 
| Perform required deactivation.  More... | |
| def | getBufferLength (self) | 
| Get the current data buffer length. | |
| def | startLoop (self) | 
| Start the data recording loop. | |
| def | stopLoop (self) | 
| Stop the data recording loop. | |
| def | loop (self) | 
| Execute step in the data recording loop: save one of each control and process values. | |
| def | getSavingState (self) | 
| Return whether we are saving data.  More... | |
| def | startSaving (self) | 
| Start saving data.  More... | |
| def | saveData (self) | 
| Stop saving data and write data to file.  More... | |
| def | setBufferLength (self, newBufferLength) | 
| Change buffer length to new value.  More... | |
| def | get_kp (self) | 
| Return the proportional constant.  More... | |
| def | set_kp (self, kp) | 
| Set the proportional constant of the PID controller.  More... | |
| def | get_ki (self) | 
| Get the integration constant of the PID controller.  More... | |
| def | set_ki (self, ki) | 
| Set the integration constant of the PID controller.  More... | |
| def | get_kd (self) | 
| Get the derivative constant of the PID controller.  More... | |
| def | set_kd (self, kd) | 
| Set the derivative constant of the PID controller.  More... | |
| def | get_setpoint (self) | 
| Get the current setpoint of the PID controller.  More... | |
| def | set_setpoint (self, setpoint) | 
| Set the current setpoint of the PID controller.  More... | |
| def | get_manual_value (self) | 
| Return the control value for manual mode.  More... | |
| def | set_manual_value (self, manualvalue) | 
| Set the control value for manual mode.  More... | |
| def | get_enabled (self) | 
| See if the PID controller is controlling a process.  More... | |
| def | set_enabled (self, enabled) | 
| Set the state of the PID controller.  More... | |
| def | get_control_limits (self) | 
| Get the minimum and maximum value of the control actuator.  More... | |
| def | set_control_limits (self, limits) | 
| Set the minimum and maximum value of the control actuator.  More... | |
| def | get_pv (self) | 
| Get current process input value.  More... | |
| def | get_cv (self) | 
| Get current control output value.  More... | |
| Public Attributes | |
| NumberOfSecondsLog | |
| threadlock | |
| history | |
| savingState | |
| enabled | |
| timer | |
| Static Public Attributes | |
| controller = Connector(interface='PIDControllerInterface') | |
| declare connectors | |
| savelogic = Connector(interface='SaveLogic') | |
| bufferLength = StatusVar('bufferlength', 1000) | |
| timestep = StatusVar(default=100) | |
| sigUpdateDisplay = QtCore.Signal() | |
Control a process via software PID.
| def pid_logic.PIDLogic.get_control_limits | ( | self | ) | 
Get the minimum and maximum value of the control actuator.
| def pid_logic.PIDLogic.get_cv | ( | self | ) | 
Get current control output value.
| def pid_logic.PIDLogic.get_enabled | ( | self | ) | 
See if the PID controller is controlling a process.
| def pid_logic.PIDLogic.get_kd | ( | self | ) | 
Get the derivative constant of the PID controller.
| def pid_logic.PIDLogic.get_ki | ( | self | ) | 
Get the integration constant of the PID controller.
| def pid_logic.PIDLogic.get_kp | ( | self | ) | 
Return the proportional constant.
| def pid_logic.PIDLogic.get_manual_value | ( | self | ) | 
Return the control value for manual mode.
| def pid_logic.PIDLogic.get_pv | ( | self | ) | 
Get current process input value.
| def pid_logic.PIDLogic.get_setpoint | ( | self | ) | 
Get the current setpoint of the PID controller.
| def pid_logic.PIDLogic.getSavingState | ( | self | ) | 
Return whether we are saving data.
| def pid_logic.PIDLogic.on_deactivate | ( | self | ) | 
Perform required deactivation.
| def pid_logic.PIDLogic.saveData | ( | self | ) | 
Stop saving data and write data to file.
Function does nothing right now.
| def pid_logic.PIDLogic.set_control_limits | ( | self, | |
| limits | |||
| ) | 
Set the minimum and maximum value of the control actuator.
| list(float) | limits: (minimum, maximum) values of the control actuator | 
This function does nothing, control limits are handled by the control module
| def pid_logic.PIDLogic.set_enabled | ( | self, | |
| enabled | |||
| ) | 
Set the state of the PID controller.
| bool | enabled: desired state of PID controller | 
| def pid_logic.PIDLogic.set_kd | ( | self, | |
| kd | |||
| ) | 
Set the derivative constant of the PID controller.
| float | kd: the derivative constant of the PID controller | 
| def pid_logic.PIDLogic.set_ki | ( | self, | |
| ki | |||
| ) | 
Set the integration constant of the PID controller.
| float | ki: integration constant of the PID controller | 
| def pid_logic.PIDLogic.set_kp | ( | self, | |
| kp | |||
| ) | 
Set the proportional constant of the PID controller.
float kp: proportional constant of PID controller
| def pid_logic.PIDLogic.set_manual_value | ( | self, | |
| manualvalue | |||
| ) | 
Set the control value for manual mode.
| float | manualvalue: control value for manual mode of controller | 
| def pid_logic.PIDLogic.set_setpoint | ( | self, | |
| setpoint | |||
| ) | 
Set the current setpoint of the PID controller.
| float | setpoint: new set point of the PID controller | 
| def pid_logic.PIDLogic.setBufferLength | ( | self, | |
| newBufferLength | |||
| ) | 
Change buffer length to new value.
| int | newBufferLength: new buffer length | 
| def pid_logic.PIDLogic.startSaving | ( | self | ) | 
Start saving data.
Function does nothing right now.
 1.8.13
 1.8.13