Skip to content
Analog.VoltageSensor.md

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

p.i(t)=0n.i(t)=0v(t)=p.v(t)n.v(t)

Source

dyad
component VoltageSensor
  p = Pin()
  n = Pin()
  v = RealOutput()
relations
  p.i = 0
  n.i = 0
  v = p.v - n.v
end
Flattened Source
dyad
component VoltageSensor
  p = Pin()
  n = Pin()
  v = RealOutput()
relations
  p.i = 0
  n.i = 0
  v = p.v - n.v
metadata {}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses