Pressure Transducer
Behavioral model of generic pressure transducer that turns pressure measurement into voltage
Libraries:
Simscape /
Electrical /
Sensors & Transducers
Description
The Pressure Transducer block models a generic pressure transducer that turns a pressure measurement into a voltage. The block lets you 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, and the block outputs zero volts if the pressure is less than zero. An input pressure equal to the Pressure range parameter value results in an output voltage equal to the Full-scale deflection parameter value. For higher pressures, the output voltage remains at this Full-scale deflection value.
You have three choices of operation mode, which let you select between vacuum, atmospheric pressure, or sealed-gauge reference pressure as the reference point for the pressure measurement.
Optionally, if you set the Dynamics parameter to
Model transducer bandwidth
, then the dynamics of the
sensor are approximated by a first-order lag. The lag is determined by the
Bandwidth parameter. If you select this option, you must also
specify an initial condition for the lag by using the Measured
pressure variable target.
If running your simulation with a fixed-step solver, or generating code for
hardware-in-the-loop testing, MathWorks recommends that you set the
Dynamics parameter to No dynamics —
Suitable for HIL
, because this avoids the need for a small simulation
time step if the sensor bandwidth is high.
Variables
To set the priority and initial target values for the block variables prior to 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.
Nominal values provide a way 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 which 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 variable target specifies the initial output for the sensor.