Voltage Sensor
Physical NetworksThe 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:
Where:
V(p)is the electrical potential at terminalp(V).V(n)is the electrical potential at terminaln(V).V_{out}(t)is the numerical output signal (V).- The current flowing into terminal
pandnis identically zero ().
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
pandn; terminalndoes 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