CHAPTER 3: SETTING UP AND USING THE SDK
PCI-AC51 User’s Guide
23
23
Scaling Operations
Function
Type
Function
Parameter
Type
Parameter
Description
long
PamuxUtilScaleI2I
long
X1
These interpolation functions are useful for con-
verting between engineering units and raw ana-
log counts. Pamux analog input and output
values range between 0 and FFF hex (4,095
decimal). These values typically correspond to
engineering units, such as pH and psi. For
example, to convert raw counts (from 0 to FFF
hex) to a percentage, use:
float fPercent=PamuxUtilScaleI2F
(0,0xFFF,0.0,100.0,RawCount);
long
X2
long
Y1
long
Y2
long
Xin
float
PamuxUtilScaleI2F
long
X1
long
X2
float
Y1
float
Y2
long
Xin
float
PamuxUtilScaleF2F
float
X1
float
X2
float
Y1
float
Y2
float
Xin
long
PamuxUtilScaleF2I
float
X1
float
X2
long
Y1
long
Y2
float
Xin
* Note for Visual Basic users: * indicates a “by reference” argument.
Содержание PCI-AC51
Страница 8: ...FOR HELP PCI AC51 User s Guide 4 ...
Страница 30: ...SPECIAL PRECAUTIONS FOR THE SOFTWARE DEVELOPER PCI AC51 User s Guide 26 ...
Страница 34: ...ERROR CODES FOR WINDOWS 2000 XP PCI AC51 User s Guide 30 ...
Страница 38: ...LEDS PCI AC51 User s Guide 34 ...
Страница 40: ...CONVERTING APPLICATIONS THAT USE INP AND OUTP PCI AC51 User s Guide 36 ...