create_resistor_on_pin

EdbSiwave.create_resistor_on_pin(pos_pin, neg_pin, rvalue=1, resistor_name='')[source]

Create a voltage source.

Parameters
pos_pinObject

Positive Pin.

neg_pinObject

Negative Pin.

rvaluefloat, optional

Resistance value. The default is 1.

resistor_namestr, optional

Name of the resistor. The default is "".

Returns
str

Name of the resistor.

Examples

>>> from pyaedt import Edb
>>> edbapp = Edb("myaedbfolder", "project name", "release version")
>>> pins =edbapp.core_components.get_pin_from_component("U2A5")
>>> edbapp.core_siwave.create_resistor_on_pin(pins[0], pins[1],50,"res_name")