F
P
UNCTION
ROTOTYPE
ViStatus vtex10xxA_set_user_conversion(ViSession vi, ViInt32 eu_conv, ViReal64 fwdcoeff[], ViInt32 numFwd,
ViReal64 invcoeff[], ViInt32 numInv);
F
P
UNCTION
ARAMETERS
vi = contains a session handle to the instrument. This handle is obtained by the function and remains valid until the
session is closed.
eu_conv = the polynomial set to be defined. Value must be an integer equal to 9 (User0) or 10 (User1).
fwdcoeff[] = an array of forward conversion polynomial coefficients. Coefficients c
array elements [0] through [12], respectively.
numFwd = the length of the forward coefficients array. Valid input values: 1 through 13.
invcoeff[] = an array of inverse conversion polynomial coefficients. Coefficients d
array elements [0] through [12], respectively.
numInv = the length of the inverse coefficients array. Valid input values: 1 through 13.
D
I
R
V
ATA
TEM
ESET
ALUE
fwdcoeff[] = 0 in all array elements for both polynomial sets.
invcoeff[] = 0 in all array elements for both polynomial sets.
D
ESCRIPTION
This function sets the user-defined conversion polynomials.
The forward conversion polynomial is used to convert a CJC temperature into a compensating cold junction voltage
and has the form of:
1
E
c
c
*
t
c
*
t
0
1
2
where E is in volts, t is in ºC, and c
The inverse conversion polynomial is used to convert a compensated input voltage into temperature and has the
form of:
1
t
d
d
*
E
d
*
0
1
2
where E is in volts, t is in ºC, and d
Undefined coefficients are automatically set to 0.
NOTE
The entry of user-defined coefficients does not automatically enable their use. The enabling is done
by setting the EU conversion to User0 or User1 through the vtex10xxA_set_channel_conversion
function.
E
XAMPLE
EX10xxA Function Calls
vtex10xxA_set_user_conversion
2
12
c
*
t
12
– c
are the coefficients.
o
12
2
12
E
d
*
E
12
– d
are the coefficients.
o
12
www.vtiinstruments.com
through c
are represented in
0
12
through d
are represented in
0
12
263
Need help?
Do you have a question about the EX1000A and is the answer not in the manual?
Questions and answers