PotentialSensor
IconPotentialSensor
Creates a circuit component which measures the potential at a pin.
Usage
PotentialSensor()
Connectors
p
- (Pin
)phi
- This connector represents a real signal as an output from a component (RealOutput
)
Behavior
\[ \begin{align} \mathtt{p.i}\left( t \right) &= 0 \\ \mathtt{phi}\left( t \right) &= \mathtt{p.v}\left( t \right) \end{align} \]
Source
# Creates a circuit component which measures the potential at a pin.
component PotentialSensor
p = Pin() [{
"JuliaSim": {
"placement": {"icon": {"iconName": "pos", "x1": -50, "y1": 450, "x2": 50, "y2": 550}}
}
}]
phi = RealOutput() [{
"JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}
}]
relations
p.i = 0
phi = p.v
metadata {
"JuliaSim": {
"labels": [
{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0},
{"label": "V", "x": 606, "y": 676, "rot": 0}
],
"icons": {"default": "jsml://ElectricalComponents/TwoPinSensor.svg"}
}
}
end
Flattened Source
# Creates a circuit component which measures the potential at a pin. component PotentialSensor p = Pin() [{ "JuliaSim": { "placement": {"icon": {"iconName": "pos", "x1": -50, "y1": 450, "x2": 50, "y2": 550}} } }] phi = RealOutput() [{ "JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}} }] relations p.i = 0 phi = p.v metadata { "JuliaSim": { "labels": [ {"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}, {"label": "V", "x": 606, "y": 676, "rot": 0} ], "icons": {"default": "jsml://ElectricalComponents/TwoPinSensor.svg"} } } end
Test Cases
Related
- Examples
- Experiments
- Analyses