Analog.VoltageSensor ​
Usage ​
TranslatedComponents.Analog.VoltageSensor()
Connectors ​
p- This connector represents an electrical pin with voltage and current as the potential and flow variables, respectively. (Pin)n- This connector represents an electrical pin with voltage and current as the potential and flow variables, respectively. (Pin)v- This connector represents a real signal as an output from a component (RealOutput)
Behavior ​
julia
using TranslatedComponents #hide
using ModelingToolkit #hide
@named sys = TranslatedComponents.Analog.VoltageSensor() #hide
full_equations(sys) #hide<< @example-block not executed in draft mode >>Source ​
dyad
component VoltageSensor
p = Pin()
n = Pin()
v = RealOutput()
relations
p.i = 0
n.i = 0
v = p.v - n.v
endFlattened Source
dyad
component VoltageSensor
p = Pin()
n = Pin()
v = RealOutput()
relations
p.i = 0
n.i = 0
v = p.v - n.v
metadata {}
endTest Cases ​
No test cases defined.
Related ​
Examples
Experiments
Analyses