Pythonic Virtual Machine
phasor Class Reference

Detailed Description

Phasor.png
schema

Takes in two inputs and will measure the legnth of time between the first input becoming postive and the second also becoming positive.

  • Initialisation parameters:

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

    Input channels:

    • in1
    • in2

    Output channels:

    • tick = 1 when input 2 becomes positve assuming input 1 has alreayd become postive before it
    • delay = time difference between input 1 and input 2 becoming positve

    Example:

    1 machine.AddCircuit(type='phasor', name='Phasor' )

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