©
National Instruments Corporation
15
SCXI-1520 Calibration Procedure
3.
Call
SCXI_Adv_Module_Write
to write the new excitation adjust
calibration constants to the module. Set the following parameters:
•
SCXIchassisID
—The value assigned by MAX
•
moduleSlot
—1
•
moduleClass
—2
•
address
—2
×
iquo
+ 9, where
iquo
is the integer part of the
module channel divided by 2
•
numBytes
—4
•
data
—The value of
ExcitationAdjust
represented as 4 bytes in
a 4-element array stored little-endian
•
whichAccess
—0
•
regMethod
— –1
•
subAddress
—(296
×
irem
+ 654) + (4
×
index
), where
irem
is the
integer remainder of the module channel divided by 2, and
index
is the index from Table 3 that corresponds to the excitation voltage
you are adjusting
4.
Repeat steps 2 and 3 for the remaining excitation voltages and
channels.
Reading New Calibration Constants to Memory
Note
You can call
SCXI_Get_Chassis_Info
and
SCXI_Get_Module_Info
to find
variables (parameters) for
SCXI_Set_Config
. Refer to the
Traditional NI-DAQ Help
for
detailed function help.
Reset NI-DAQ to read new calibration constants by calling
SCXI_Set_Config
with the following parameters:
•
SCXIchassisID
—The value assigned by MAX
•
chassisType
—0 for SCXI-1000, 1 for SCXI-1001, 4 for PXI-1010,
5 for PXI-1011
•
address
—0–31 as found in MAX
•
commMode
—1
•
commPath
—MIO device number
•
numSlots
—physical number of slots in chassis, 4, 8, or 12
•
moduleTypes
—array of length numSlots, with each element
corresponding to a slot in the chassis. Use –1 if the index corresponds
to an empty slot. Use 51 if the index corresponds to a slot containing
an SCXI-1520.