Ⓥ

Voltage Sensor

Physical Networks
Run the live example Free · no sign-up · runs in your browser

The VoltageSensor block measures the electrical potential difference between two conserving electrical nodes and converts it into a standard causal continuous signal. The sensor draws zero current from the monitored circuit, acting as an ideal infinite-impedance voltmeter.

The measured potential difference is emitted from output port out as a numerical signal, making it accessible to standard signal processing blocks, scopes, displays, controllers, and verification assertions.

Real-World Analog: Represents an ideal high-impedance digital multimeter or oscilloscope voltage probe measuring potential difference without drawing current.

Mathematical Model

The sensor computes the across-variable potential difference:

Vout(t)=V(p)−V(n)V_{out}(t) = V(p) - V(n)

Where:

  • V(p) is the electrical potential at terminal p (V).
  • V(n) is the electrical potential at terminal n (V).
  • V_{out}(t) is the numerical output signal (V).
  • The current flowing into terminal p and n is identically zero (Ip=In=0I_p = I_n = 0).

Inputs & Outputs

Direction ID Label Type Status
→ In p + number Required
→ In n - number Required
← Out out V number Output

Usage Examples

Voltage Divider Midpoint Readout

In examples/basic-voltagesensor.json, the sensor non-invasively measures the 5.0 V midpoint of two identical series 100 Ω resistors driven by a 10 V source to Ground.

Capacitor Voltage Monitoring

Record transient capacitor discharge into a digital oscilloscope:

`Capacitor(+) → VoltageSensor(p)

Capacitor(-) → VoltageSensor(n)

VoltageSensor(out) → Scope`

Remarks & Best Practices

  • Non-Invasive Sensing: Does not disturb circuit dynamics due to infinite input impedance.
  • Domain Conversion: Bridges physical conserving networks with standard causal signal networks.
  • Differential Measurement: Fully floating measurement between p and n; terminal n does not have to be ground.
  • Real-Time Readout: Output signal is updated synchronously at every numerical integration step.

Related Components

  • CurrentSensor: Measure through branch current
  • VoltageSource: Apply voltages across network terminals
  • Scope: Visualize measured voltage waveforms
  • NumericDisplay: Display instantaneous potential readouts