create_current_source_on_net#
- EdbSiwave.create_current_source_on_net(positive_component_name, positive_net_name, negative_component_name=None, negative_net_name=None, current_value=0.1, phase_value=0, source_name='')[source]#
Create a current source.
- Parameters:
- positive_component_name
str
Name of the positive component.
- positive_net_name
str
Name of the positive net.
- negative_component_name
str
,optional
Name of the negative component. The default is
None
, in which case the name of the positive net is assigned.- negative_net_name
str
,optional
Name of the negative net name. The default is
None
which will look for GND Nets.- current_value
float
,optional
Value for the current. The default is
0.1
.- phase_value
optional
Value for the phase. The default is
0
.- source_name
str
,optional
Name of the source. The default is
""
.
- positive_component_name
- Returns:
str
The name of the source.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder", "project name", "release version") >>> edb.siwave.create_current_source_on_net("U2A5", "V1P5_S3", "U2A5", "GND", 0.1, 0, "source_name")