Pythonic Virtual Machine
waver Class Reference

Detailed Description

waver.png
schema

Creates sine and cosine waves with the specifics given by the inputs. Can also create a sawtooth wave and a linear increasing signal (Ramper)

Initialisation parameters:

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

Input channels:

  • amp = amplitude
  • freq = frequency
  • offset = offset value

Output channels:

  • sin = $amp\cdot \sin(2 \pi freq\cdot t) + offset $ sine wave
  • cos = $amp\cdot \cos(2 \pi freq\cdot t) + offset $ cosine wave
  • saw = $amp\cdot( freq*f(t) - floor(freq*f(t) ) + offset $ sawtooth wave

Example:

1 machine.AddCircuit(type='waver', name='wgen')
2 machine.AddCircuit(type='waver', name='wgen', amp=1.2, freq=12000)

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