Pythonic Virtual Machine
avg Class Reference

Detailed Description

Avg.png
schema

This circuit will return the average of an input signal, over a certain amount of time.

Initialisation parameters:

  • pushed = True|False push the output buffer immediately if True
  • time = sampling time (in real time units)
  • moving = True|False compute average at each step (True) or only when the buffer is full (False, default)

Input channels:

  • signal = signal to average

Output channels:

  • out = averaged signal

Examples:

1 machine.AddCircuit(type='avg', name='average', time = 10, moving = False , pushed = 'True')

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