CalcSetUnits

Top  Previous  Next

This function is used to write all the distribution of a component to the dll

 

 

This function is defined in C++ as:

extern "C" __declspec(dllexport) int __stdcall CalcSetUnits(char *UnitType, char *Direction, char *ValueLabel)

 

Return

The function return -1 if no problem was found. If a different number is returned check the argument ErrorString for more information.

 

Input

Argument

Type

Description

 

 

UnitType

 

 

char pointer

Type of unit to be set. Valid input are:

Temperature
Pressure
Composition

 

Direction

 

char pointer

Defines if set unit are for input or output. Valid input are:

In
Out

 

 

 

 

 

 

 

 

 

 

 

ValueLabel

 

 

 

 

 

 

 

 

 

 

 

char pointer

The value of the parameter if it is a string type. Valid input depends on the argument UnitType. Valid input for each UnitType ae:

 

UnitType = Temperature

Kelvin
Celsius
Fahrenheit
Rankine

 

UnitType = Pressure

Pa
kPa
MPa
Bar
Atm
Psi
mmHg

 

UnitType = Composition

MoleFraction
MassFraction

 

Code examples

Example