UnitConversion

The unitConversion block changes the unit of measurement of the data. You can convert the unit of measurement within numerous categories.

    UnitConversion

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

UnitConversion_0

NameLabelDescriptionData TypeValid Values

ucategory

Unit category

Structure

ucategory/Temperature

Temperature

Unit category that should be converted.

Number

0
1

ucategory/Volume

Volume

Number

0
1

ucategory/Pressure

Pressure

Number

0
1

ucategory/Distance

Distance

Number

0
1

ucategory/Speed

Speed

Number

0
1

ucategory/Acceleration

Acceleration

Number

0
1

ucategory/Force

Force

Number

0
1

ucategory/Energy

Energy

Number

0
1

ucategory/Power

Power

Number

0
1

ucategory/Mass

Mass

Number

0
1

ucategory/Flow

Flow

Number

0
1

ucategory/Area

Area

Number

0
1

ucategory/Charge

Charge

Number

0
1

ucategory/Volt

Volt

Number

0
1

ucategory/Current

Current

Number

0
1

ucategory/Resistance

Resistance

Number

0
1

ucategory/Capacitance

Capacitance

Number

0
1

ucategory/Magnetic_Flux

Magnetic Flux

Number

0
1

ucategory/Inductance

Inductance

Number

0
1

ucategory/Torque

Torque

Number

0
1

ucategory/Rotary_Inertia

Rotary Inertia

Number

0
1

ucategory/Rotation

Rotation

Number

0
1

ucategory/Rotational_Speed

Rotational Speed

Number

0
1

ucategory/Density

Density

Number

0
1

ucategory/Enthalpy

Enthalpy

Number

0
1

PI_Temperature

Input unit

>Input unit.

String

'celsius'
'fahrenheit'
'kelvin'
'rankine'

PO_Temperature

Output unit

Output unit.

String

'celsius'
'fahrenheit'
'kelvin'
'rankine'

PI_Volume

Input unit

String

'm^3'
'barrel'
'bushel
(U.S.)'
'cm^3'
'cord'
'ft^3'
'gallon'
'L'
'ounce
(U.S.
fluid)'
'pint
(U.S.
dry)'
'pint
(U.S.
liquid)'
'quart
(U.S.
dry)'
'quart
(U.S.
liquid)'
'yd^3'
'cup'
'in^3'
'tablespoon'
'teaspoon'

PO_Volume

Output unit

String

'm^3'
'barrel'
'bushel
(U.S.)'
'cm^3'
'cord'
'ft^3'
'gallon'
'L'
'ounce
(U.S.
fluid)'
'pint
(U.S.
dry)'
'pint
(U.S.
liquid)'
'quart
(U.S.
dry)'
'quart
(U.S.
liquid)'
'yd^3'
'cup'
'in^3'
'tablespoon'
'teaspoon'

PI_Pressure

Input unit

String

'N/m^2
(Pascal)'
'atm'
'bar'
'barye'
'in
Hg'
'in
H20
@4C'
'lb/ft^2'
'lb/in^2
(psi)'
'millibar'
'torr
@0C'
'kPa'
'MPa'
'cm
H20
@4C'
'mm
Hg
@0C'
'in
Hg
@0C'

PO_Pressure

Output unit

String

'N/m^2
(Pascal)'
'atm'
'bar'
'barye'
'in
Hg'
'in
H20
@4C'
'lb/ft^2'
'lb/in^2
(psi)'
'millibar'
'torr
@0C'
'kPa'
'MPa'
'cm
H20
@4C'
'mm
Hg
@0C'
'in
Hg
@0C'

PI_Distance

Input unit

String

'm'
'angstrom'
'astronomical
unit'
'cable'
'caliber'
'cm'
'fathom'
'ft'
'furlong'
'in'
'km'
'light
year'
'micron'
'mile'
'mil'
'mm'
'nautical
mile
(international)'
'nautical
mile
(U.S.)'
'nautical
mile
(U.K.)'
'yd'

PO_Distance

Output unit

String

'm'
'angstrom'
'astronomical
unit'
'cable'
'caliber'
'cm'
'fathom'
'ft'
'furlong'
'in'
'km'
'light
year'
'micron'
'mile'
'mil'
'mm'
'nautical
mile
(international)'
'nautical
mile
(U.S.)'
'nautical
mile
(U.K.)'
'yd'

PI_Speed

Input unit

String

'm/s'
'ft/s'
'knot'
'km/s'
'km/hr'
'mi/hr'
'mm/s'

PO_Speed

Output unit

String

'm/s'
'ft/s'
'knot'
'km/s'
'km/hr'
'mi/hr'
'mm/s'

PI_Acceleration

Input unit

String

'm/s^2'
'ft/s^2'
'in/s^2'
'galileo'

PO_Acceleration

Output unit

String

'm/s^2'
'ft/s^2'
'in/s^2'
'galileo'

PI_Force

Input unit

String

'N'
'dyne'
'kgf'
'kN'
'lbf'
'poundals'

PO_Force

Output unit

String

'N'
'dyne'
'kgf'
'kN'
'lbf'
'poundals'

PI_Energy

Input unit

String

'Joule'
'BTU'
'cal'
'electron
volt'
'erg'
'ft.lbf'
'hp.hr'
'kJ'
'kW.hr'
'MJ'
'W.hr'
'W.s'

PO_Energy

Output unit

String

'Joule'
'BTU'
'cal'
'electron
volt'
'erg'
'ft.lbf'
'hp.hr'
'kJ'
'kW.hr'
'MJ'
'W.hr'
'W.s'

PI_Power

Input unit

String

'Watt'
'BTU/s'
'ft.lbf/s'
'horsepower'
'kWatt'
'lumens'
'BTU/hr'
'Joule/s'

PO_Power

Output unit

String

'Watt'
'BTU/s'
'ft.lbf/s'
'horsepower'
'kWatt'
'lumens'
'BTU/hr'
'Joule/s'

PI_Mass

Input unit

String

'kg'
'carat'
'g'
'lb'
'metric
ton'
'Mg'
'ounce'
'long
ton
(2240
lbs)'
'short
ton
(2000
lbs)'
'tonne'

PO_Mass

Output unit

String

'kg'
'carat'
'g'
'lb'
'metric
ton'
'Mg'
'ounce'
'long
ton
(2240
lbs)'
'short
ton
(2000
lbs)'
'tonne'

PI_Flow

Input unit

String

'm^3/s'
'ft^3/s'
'gal/day'
'gal/min'
'L/s'
'm^3/day'
'million
gal/day'
'ft^3/m'
'L/min'

PO_Flow

Output unit

String

'm^3/s'
'ft^3/s'
'gal/day'
'gal/min'
'L/s'
'm^3/day'
'million
gal/day'
'ft^3/m'
'L/min'

PI_Area

Input unit

String

'm^2'
'acre'
'are'
'barn'
'cm^2'
'ft^2'
'hectare'
'in^2'
'km^2'
'mi^2'
'yd^2'
'mm^2'

PO_Area

Output unit

String

'm^2'
'acre'
'are'
'barn'
'cm^2'
'ft^2'
'hectare'
'in^2'
'km^2'
'mi^2'
'yd^2'
'mm^2'

PI_Charge

Input unit

String

'coulomb'
'abcoulomb'
'faraday'
'micro-coulomb'
'milli-coulomb'
'statcoulomb'

PO_Charge

Output unit

String

'coulomb'
'abcoulomb'
'faraday'
'micro-coulomb'
'milli-coulomb'
'statcoulomb'

PI_Volt

Input unit

String

'volt'
'abvolt'
'micro-volt'
'milli-volt'
'statvolt'

PO_Volt

Output unit

String

'volt'
'abvolt'
'micro-volt'
'milli-volt'
'statvolt'

PI_Current

Input unit

String

'ampere'
'abampere'
'micro-ampere'
'milli-ampere'
'statampere'

PO_Current

Output unit

String

'ampere'
'abampere'
'micro-ampere'
'milli-ampere'
'statampere'

PI_Resistance

Input unit

String

'ohm'
'abohm'
'micro-ohm'
'milli-ohm'
'statohm'

PO_Resistance

Output unit

String

'ohm'
'abohm'
'micro-ohm'
'milli-ohm'
'statohm'

PI_Capacitance

Input unit

String

'farad'
'abfarad'
'micro-farad'
'milli-farad'
'statfarad'

PO_Capacitance

Output unit

String

'farad'
'abfarad'
'micro-farad'
'milli-farad'
'statfarad'

PI_Magnetic_Flux

Input unit

String

'weber'
'maxwell'
'micro-weber'
'milli-weber'

PO_Magnetic_Flux

Output unit

String

'weber'
'maxwell'
'micro-weber'
'milli-weber'

PI_Inductance

Input unit

String

'henry'
'abhenry'
'micro-henry'
'milli-henry'
'stathenry'

PO_Inductance

Output unit

String

'henry'
'abhenry'
'micro-henry'
'milli-henry'
'stathenry'

PI_Torque

Input unit

String

'kg.m'
'dyne.cm'
'gm.cm'
'kg.cm'
'lb.ft'
'lb.in'
'N.m'
'oz.in'

PO_Torque

Output unit

String

'kg.m'
'dyne.cm'
'gm.cm'
'kg.cm'
'lb.ft'
'lb.in'
'N.m'
'oz.in'

PI_Rotary_Inertia

Input unit

String

'kg.cm.s^2'
'gm.cm^2'
'gm.cm.s^2'
'kg.cm^2'
'lb.ft^2'
'lb.ft.s^2'
'lb.in^2'
'lb.in.s^2'
'oz.in^2'
'oz.in.s^2'
'slug.ft^2'

PO_Rotary_Inertia

Output unit

String

'kg.cm.s^2'
'gm.cm^2'
'gm.cm.s^2'
'kg.cm^2'
'lb.ft^2'
'lb.ft.s^2'
'lb.in^2'
'lb.in.s^2'
'oz.in^2'
'oz.in.s^2'
'slug.ft^2'

PI_Rotation

Input unit

String

'radians'
'degrees'
'arcminute'
'arcsecond'

PO_Rotation

Output unit

String

'radians'
'degrees'
'arcminute'
'arcsecond'

PI_Rotational_Speed

Input unit

String

'rad/s'
'degrees/s'
'RPM'

PO_Rotational_Speed

Output unit

String

'rad/s'
'degrees/s'
'RPM'

PI_Density

Input unit

String

'g/cm^3'
'kg/m^3'
'lb/f^3'
'pound/gallon'
'ton/cubic
yard'

PO_Density

Output unit

String

'g/cm^3'
'kg/m^3'
'lb/f^3'
'pound/gallon'
'ton/cubic
yard'

PI_Enthalpy

Input unit

String

'kJ/kg'
'J/g'
'BTU/lb'

PO_Enthalpy

Output unit

String

'kJ/kg'
'J/g'
'BTU/lb'

externalActivation

External activation

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

celsius

explicit

output

1

celsius

explicit

input

1

Port 3

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no