VoltageSensor
Sensor to measure the voltage between two pins
![]()
Library
Electrical/Analog/Sensors
Description
The voltage sensor converts the voltage between the two connectors into a real valued signal. It does not influence the current sum at the nodes in between the voltage is measured, therefore, the electrical behavior is not influenced by the sensor.
Parameters

| Name | Label | Description | Data Type | Valid Values |
|---|---|---|---|---|
mo_v | v | v | Structure | |
mo_v/fixed | fixed | Cell of scalars | true | |
mo_v/start | start | Cell of scalars |
Ports
| Name | Type | Description | IO Type | Number |
|---|---|---|---|---|
p | implicit | positive pin | input | 1 |
n | implicit | negative pin | output | 1 |
v | implicit | Voltage between pin p and n (= p.v - n.v) as output signal | output | 2 |