create_current_source_on_pin#

EdbHfss.create_current_source_on_pin(pos_pin, neg_pin, current_value=0.1, phase_value=0, source_name='')[source]#

Create a current source.

Parameters:
pos_pinObject

Positive Pin.

neg_pinObject

Negative Pin.

current_valuefloat, optional

Value for the current. The default is 0.1.

phase_valueoptional

Value for the phase. The default is 0.

source_namestr, optional

Name of the source. The default is "".

Returns:
str

Source Name.

Examples

>>> from pyedb import Edb
>>> edbapp = Edb("myaedbfolder", "project name", "release version")
>>> pins =edbapp.components.get_pin_from_component("U2A5")
>>> edbapp.hfss.create_current_source_on_pin(pins[0], pins[1],50,"source_name")