VTI Instruments Corp.
224 EX1629 Command Set
vtex1629_self_cal_is_running
FUNCTION PROTOTYPE
ViStatus vtex1629_self_cal_is_running (ViSession vi, ViPBoolean isRunning);
FUNCTION PARAMETERS
vi = contains a session handle to the instrument. This handle is obtained by the function and remains valid until the
session is closed.
isRunning = a Boolean return value indicating whether self-calibration is running. A return value of “1” indicates
that self-calibration is running, whereas “0” indicates that it is not.
DATA ITEM RESET VALUE
Not applicable to this function.
DESCRIPTION
This function queries the status of self-calibration to determine if self-calibration is currently running.
EXAMPLE
ViSession instrumentHandle;
ViStatus status;
ViBoolean isrunning;
ViInt32 count = 0;
…
<start self calibration with vtex1629_self_cal_init>
…
while(count < 30) {
status = vtex1629_self_cal_is_running (instrumentHandle, &isrunning);
if (status >= VI_SUCCESS) {
if( isrunning ) {
sleep(5);
} else {
break;
}
} else {
<inform the user the API call failed>
}
count += 1;
}