Pressure Transducer
Pressure transducer that converts pressure measurement into voltage
Libraries:
Simscape /
Electrical /
Sensors & Transducers
Description
The Pressure Transducer block models a generic pressure transducer that converts a pressure measurement into a voltage. Use the block to measure pressure in a variety of domains. Specify the domain type using the Fluid port type parameter.
The output voltage is linearly proportional to the pressure. The block outputs zero volts if the pressure is less than zero. If the input pressure equals the value of the Pressure range parameter, the output voltage is equal to the Full-scale deflection parameter value. For higher pressures, the output voltage remains at this Full-scale deflection value.
You can choose between vacuum pressure, atmospheric pressure, or sealed-gauge reference pressure as the reference point for the pressure measurement.
If you set the Dynamics parameter to Model
transducer bandwidth
, the block approximates the sensor dynamics by a
first-order lag. The Bandwidth parameter determines the lag. If you
select the Model transducer bandwidth
option, you must also
specify an initial condition for the lag using the Measured
pressure initial target.
To use a fixed-step solver or generate code for hardware-in-the-loop testing, set the
Dynamics parameter to No dynamics —
Suitable for HIL
. If your sensor bandwidth is high, you need a small
simulation time step unless you model the sensor with no dynamics.
Variables
To set the priority and initial target values for the block variables before simulation, use the Initial Targets section in the block dialog box or Property Inspector. For more information, see Set Priority and Initial Target for Block Variables.
Use nominal values to specify the expected magnitude of a variable in a model. Using system scaling based on nominal values increases the simulation robustness. Nominal values can come from different sources. One of these sources is the Nominal Values section in the block dialog box or Property Inspector. For more information, see System Scaling by Nominal Values.
The Measured pressure initial target specifies the initial output for the sensor.