UnitConversion
The unitConversion block changes the unit of measurement of the data. You can convert the unit of measurement within numerous categories.
Library
SignalConversions
Description
The unitConversion block changes the unit of measurement of the data. You can convert the unit of measurement within numerous categories.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
ucategory | Unit category | Structure | ||
ucategory/Temperature | Temperature | Number | 0 | |
ucategory/Volume | Volume | Number | 0 | |
ucategory/Pressure | Pressure | Number | 0 | |
ucategory/Distance | Distance | Number | 0 | |
ucategory/Speed | Speed | Number | 0 | |
ucategory/Acceleration | Acceleration | Number | 0 | |
ucategory/Force | Force | Number | 0 | |
ucategory/Energy | Energy | Number | 0 | |
ucategory/Power | Power | Number | 0 | |
ucategory/Mass | Mass | Number | 0 | |
ucategory/Flow | Flow | Number | 0 | |
ucategory/Area | Area | Number | 0 | |
ucategory/Charge | Charge | Number | 0 | |
ucategory/Volt | Volt | Number | 0 | |
ucategory/Current | Current | Number | 0 | |
ucategory/Resistance | Resistance | Number | 0 | |
ucategory/Capacitance | Capacitance | Number | 0 | |
ucategory/Magnetic_Flux | Magnetic Flux | Number | 0 | |
ucategory/Inductance | Inductance | Number | 0 | |
ucategory/Torque | Torque | Number | 0 | |
ucategory/Rotary_Inertia | Rotary Inertia | Number | 0 | |
ucategory/Rotation | Rotation | Number | 0 | |
ucategory/Rotational_Speed | Rotational Speed | Number | 0 | |
ucategory/Density | Density | Number | 0 | |
ucategory/Enthalpy | Enthalpy | Number | 0 | |
PI_Temperature | Input unit | String | 'celsius' | |
PO_Temperature | Output unit | String | 'celsius' | |
PI_Volume | Input unit | String | 'm^3' | |
PO_Volume | Output unit | String | 'm^3' | |
PI_Pressure | Input unit | String | 'N/m^2 | |
PO_Pressure | Output unit | String | 'N/m^2 | |
PI_Distance | Input unit | String | 'm' | |
PO_Distance | Output unit | String | 'm' | |
PI_Speed | Input unit | String | 'm/s' | |
PO_Speed | Output unit | String | 'm/s' | |
PI_Acceleration | Input unit | String | 'm/s^2' | |
PO_Acceleration | Output unit | String | 'm/s^2' | |
PI_Force | Input unit | String | 'N' | |
PO_Force | Output unit | String | 'N' | |
PI_Energy | Input unit | String | 'Joule' | |
PO_Energy | Output unit | String | 'Joule' | |
PI_Power | Input unit | String | 'Watt' | |
PO_Power | Output unit | String | 'Watt' | |
PI_Mass | Input unit | String | 'kg' | |
PO_Mass | Output unit | String | 'kg' | |
PI_Flow | Input unit | String | 'm^3/s' | |
PO_Flow | Output unit | String | 'm^3/s' | |
PI_Area | Input unit | String | 'm^2' | |
PO_Area | Output unit | String | 'm^2' | |
PI_Charge | Input unit | String | 'coulomb' | |
PO_Charge | Output unit | String | 'coulomb' | |
PI_Volt | Input unit | String | 'volt' | |
PO_Volt | Output unit | String | 'volt' | |
PI_Current | Input unit | String | 'ampere' | |
PO_Current | Output unit | String | 'ampere' | |
PI_Resistance | Input unit | String | 'ohm' | |
PO_Resistance | Output unit | String | 'ohm' | |
PI_Capacitance | Input unit | String | 'farad' | |
PO_Capacitance | Output unit | String | 'farad' | |
PI_Magnetic_Flux | Input unit | String | 'weber' | |
PO_Magnetic_Flux | Output unit | String | 'weber' | |
PI_Inductance | Input unit | String | 'henry' | |
PO_Inductance | Output unit | String | 'henry' | |
PI_Torque | Input unit | String | 'kg.m' | |
PO_Torque | Output unit | String | 'kg.m' | |
PI_Rotary_Inertia | Input unit | String | 'kg.cm.s^2' | |
PO_Rotary_Inertia | Output unit | String | 'kg.cm.s^2' | |
PI_Rotation | Input unit | String | 'radians' | |
PO_Rotation | Output unit | String | 'radians' | |
PI_Rotational_Speed | Input unit | String | 'rad/s' | |
PO_Rotational_Speed | Output unit | String | 'rad/s' | |
PI_Density | Input unit | String | 'g/cm^3' | |
PO_Density | Output unit | String | 'g/cm^3' | |
PI_Enthalpy | Input unit | String | 'kJ/kg' | |
PO_Enthalpy | Output unit | String | 'kJ/kg' | |
externalActivation | External activation | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
celsius | explicit | output | 1 | |
celsius | explicit | input | 1 | |
Port 3 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | |
direct-feedthrough | yes | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |