BinPy.Analog package

Submodules

BinPy.Analog.base module

class BinPy.Analog.base.Resistor(params)[source]

This Class implements the Resistor, having the following parameters: ‘+’ : Resistor end at positive potential ‘-‘ : Resistor end at negative potential ‘r’ : Resistance value ‘i’ : Current flowing through the resistor

Example:
>>> from BinPy import *
>>> params = {'r':5}
>>> r = Resistor(params)
>>> r.getParams()
{'i': 0, '+': 0, 'r': 5, '-': 0}
>>> r.setVoltage(Connector(5), Connector(0))
{'i': 1.0, '+': 5, 'r': 5, '-': 0}
>>> r.setCurrent(10)
{'i': 10, '+': 50, 'r': 5, '-': 0}
>>> r.setResistance(10)
{'i': 5.0, '+': 50, 'r': 10, '-': 0}
getParams()[source]
setCurrent(value)[source]
setResistance(value)[source]
setVoltage(val1, val2)[source]

BinPy.Analog.source module

class BinPy.Analog.source.CosWaveCurrentSource(amplitude=0, frequency=0, time=0, epoch=0)[source]

Bases: BinPy.Analog.source.CurrentSource

class BinPy.Analog.source.CosWaveVoltageSource(amplitude=0, frequency=0, time=0, epoch=0)[source]

Bases: BinPy.Analog.source.VoltageSource

class BinPy.Analog.source.CurrentSource(equation, params)[source]

Bases: BinPy.Analog.source.Source

setoutput(param, value)[source]
trigger()[source]
class BinPy.Analog.source.SinWaveCurrentSource(amplitude=0, frequency=0, time=0, epoch=0)[source]

Bases: BinPy.Analog.source.CurrentSource

class BinPy.Analog.source.SinWaveVoltageSource(amplitude=0, frequency=0, time=0, epoch=0)[source]

Bases: BinPy.Analog.source.VoltageSource

class BinPy.Analog.source.Source(equation, params)[source]

This class represents a base class for the signal source

evaluate()[source]
getParams()[source]
setEquation(equation)[source]
setParam(param, value)[source]
setParams(params)[source]
class BinPy.Analog.source.VoltageSource(equation, params)[source]

Bases: BinPy.Analog.source.Source

setOutput(param, value)[source]
trigger()[source]

Module contents

Table Of Contents

Previous topic

BinPy.Algorithms package

Next topic

BinPy.Combinational package

This Page