Pythonic Virtual Machine
minmax Class Reference

Detailed Description

minmax.png
schema

Takes in an input signal and multiplies it by a given gain

Initialisation parameters:

  • pushed = True|False push the output buffer immediately if True
  • CheckTime = length of time interval where a max and min value will detected. After this period has elapsed the circuit will output and then will begin checking for mins and maxs during the next interval.

Input channels:

  • signal

Output channels:

  • max = Maximum value found in the CheckTime interval
  • min = Minimum value found in the CheckTime interval
  • amp = $ \frac{max - min}{2}$
  • offset = $ \frac{max + min}{2}$

Example:

1 machine.AddCircuit(type='minmax', name='MinandMax' , CheckTime = 4)

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