Pythonic Virtual Machine
PID Class Reference

Detailed Description

PID.png
schema

This circuit will compare the input signal with a reference signal and regulate the output in order to minimise the difference using a PID controller.

Initialisation parameters:

  • pushed = True|False push the output buffer immediately if True

Input channels:

  • signal = incoming signal
  • set = reference signal
  • Kp = proportional constant
  • Ki = integral constant
  • Kd = derivative constant

Output channels:

  • out = $ K_p (set-signal) + K_i \int (set-signal) dt +K_d\frac{d(set-signal)}{dt}$

Examples:

1 machine.AddCircuit(type='PID', name='pid')
2 machine.AddCircuit(type='PID', name='pid', Kp=0.1)
3 machine.AddCircuit(type='PID', name='pid', Kp=0.2, Ki=0.01, Kd=0.1)

Inherits Circuit.

Additional Inherited Members

- Public Attributes inherited from Circuit
 name
 Name of the circuit. More...
 
 enabled
 if it is working... More...
 
 machine
 Reference to the virtual machine to which this circuit belongs. More...
 
 pushed
 Push output buffer at the end of Update. More...
 
 I
 Dictionary of input channels.
 
 O
 Dictionary of output channels.
 
 cCoreID
 index of circuit in cCore
 

Documentation for pyVAFM
Generated on Wed Feb 8 2017 10:13:49 for pyVAFM by doxygen 1.8.9.1