Fluke RUSKA 7750i User Manual page 67

Air data test set
Table of Contents

Advertisement

}
/*-------------------------------------------------*/
/* Read pressure status until setpoint is reached. */
/*
/*
MEAS?
/*
STAT:OPER:COND?
/*-------------------------------------------------*/
while (!kbhit ( ))
{ request_7000 ("MEAS?;:STAT:OPER:COND?\n");
pressure = strtod (buffer, &p);
status
= atoi (++p);
if (check_errors ( ))
continue;
if (status & 0x10)
printf ("Pressure = %9.3lf\n", pressure);
if ((status & 2) == 0)
break;
}
/*-------------------------------------------*/
/* Reset 7750 to Measure mode
/*
/*
OUTP:MODE MEASURE
/*-------------------------------------------*/
write_7000 ("OUTP:MODE MEASURE\n");
check_errors ( );
/*----------------------*/
/* Reset GPIB Interface */
/*----------------------*/
ibonl (device, 0);
}
/*--------------------------------------------------------------------*/
/* check_errors : display all GPIB and 7750 error messages
/*
return TRUE if any errors were found
/*--------------------------------------------------------------------*/
int check_errors (void)
{
unsigned char status7;
int retval;
/*---------------------------------*/
/* Check for GPIB Interface Errors */
/*---------------------------------*/
if (ibsta & ERR)
{ printf ("GPIB Status=%4X Error=%d\n");
return 1;
}
/*-----------------------*/
/* Check for 7750 Errors */
/*-----------------------*/
retval = 0;
while (!kbhit ( ))
{ ibrsp (device, &status7);
if ((status7 & 4) == 0)
break;
retval = 1;
request_7000 ("SYST:ERR?\n");
printf (buffer);
}
return retval;
}
/*--------------------------------------------------------------------*/
/* write_7000 : write a command to the 7250
/*--------------------------------------------------------------------*/
void write_7000 (char *s)
{
ibwrt (device, s, strlen (s));
}
Read pressure
Read status setpoint
*/
*/
Enter Measure mode */
/* Get error message */
Remote Operation
Sample Programs
*/
*/
*/
*/
*/
/* Serial poll */
/* Check error bit */
*/
5
5-11

Advertisement

Table of Contents
loading

Table of Contents