National Instruments Welding System 321645c-01 Manual De Usuario

Descargar
Página de 554
Chapter 2
Function Reference — Calibrate_1200
NI-DAQ FRM for PC Compatibles
2-54
©
 National Instruments Corporation
Next call this function again; for example:
status = Calibrate_1200 (device, 5, 0, EEPROMloc, 0, 0, 0, 0, 0, 0)
where the device and EEPROMloc are the same as in the first function call.
NI-DAQ automatically modifies the ADC unipolar pointer in the default load table to point to 
user area 1.
Step 2. Bipolar calibration—Change the polarity of your device to bipolar. Call 
Calibrate_1200
 to perform another ADC calibration (calOP = 2) with saveNewCal = 1 
(save) and EEPROMloc set to a different user area (say, 2) as shown above. Next, call the 
function with calOP = 5 and EEPROMloc = 2 as shown above. NI-DAQ automatically 
modifies the ADC bipolar pointer in the default load table to point to user area 2. At this point, 
you have set up user area 1 to be your default load area when you operate the device in 
unipolar mode and user area 2 to be your default load area when you operate the device in 
bipolar mode. NI-DAQ automatically handles the loading of the appropriate constants.
Failed calibrations leave your device in an incorrectly calibrated state. If you run this function 
with calOp = 2 or 3 and receive an error, you must reload a valid set of calibration constants. 
If you have a valid set of user defined constants in one of the user areas, you can load them. 
Otherwise, reload the factory constants.
Note
If you are using remote SCXI, the time this function might take depends on the 
baud rate settings, where slower baud rates causes this function to take longer. You 
also might want to call 
Timeout_Config
 to set the timeout limit for your device 
to a longer value, if you do obtain a timeoutError from this function.