User guide

WintDrive
Units-Converter
Units-Converter
Description
It multiplies input
(In)
by
EuroFct
(if UnitsSystem logical variable is equal to 0, by
USAFct if
equal to 1, by
SIFct
otherwise.
This compound block provides a standard method to convert a quantity from one unit to another one. So a
scheme working with different units can be developed, and different units can be used just by changing
UnitsSvstem variable value.
Three different units are provided:
.
units
for
european countries
when UnitsSystem is 0
.
units for
United States of America
when UnitsSystem is 1
l
International System of Units (SI)
otherwise
C-style description
if (UnitsSystem == 0)
Out=EuroFct*Tn,
else
if
(UnitsSystem
== 1)
0ut=UsaFctā€¯In,
else
Out=SIFct*h;
See Units conversion table for most commonly used units of measurement.
Input logical variables
name
UnitsSvstem
type description
int
Indicates which kind of units are used in the scheme; 0 for european countries, 1
for USA.
International Svstem of Units ISI) otherwise
TV@255
Output logical variables
None
195