![Fluke RUSKA 7050 User Manual Download Page 57](http://html1.mh-extra.com/html/fluke/ruska-7050/ruska-7050_user-manual_2310698057.webp)
Remote Operation
Sample Program
5
5-11
Sample Program
Sample Program - 7050 GPIB (IEEE-488) - Zero Sequence
/*------------------------------------------------------------*/
/* Sample Program 2 - 7050 GPIB (IEEE-488) */
/* */
/* Zero Sequence */
/*------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#include "decl.h"
/*------------------------------------------------------------*/
int device; /* GPIB Device descriptor */
char buffer[256]; /* buffer for input/output strings */
double pressure; /* Pressure read from unit */
int status; /* Status register from unit */
int check_errors (void);
int zero (void);
void write_7000 (char *s);
void request_7000 (char *s);
/*------------------------------------------------------------*/
void main (void)
{
char *p;
/*---------------------------*/
/* Initialize GPIB Interface */
/*---------------------------*/
device = ibdev (0, /* First GPIB Board */
4, /* GPIB Address of 7250 */
NO_SAD, /* No secondary addressing */
T1s, /* 1 Second Timeout */
0, /* No automatic EOI for transmit */
REOS+LF); /* Terminate read on Line Feed */
if (ibsta & ERR)
{ cprintf ("GPIB Driver not installed.\n");
return;
}
/*-----------*/
/* Zero 7010 */
/*-----------*/
if (!zero ( ))
{ ibonl (device, 0);
return;
}
/*----------------------*/
/* Reset GPIB Interface */
/*----------------------*/
ibonl (device, 0);
}
/*------------------------------------------------------------*/
/* Zero : perform zero adjust of 7250 */
/*------------------------------------------------------------*/
int zero (void)
{
int cstat, pstat, tstat, rstat;
clrscr ( );
cprintf ("Zeroing");
gotoxy (1, 5); cprintf ("Pressure Reading");
gotoxy (1, 6); cprintf ("Sensor Temperature");
gotoxy (1, 7); cprintf ("Reference Pressure");
Summary of Contents for RUSKA 7050
Page 3: ...7050 Change Language Hold key for 5 seconds mode enter...
Page 4: ......
Page 10: ...RUSKA 7050 7050i 7050LP Users Manual vi...
Page 12: ...RUSKA 7050 7050i 7050LP Users Manual viii 7 1 Packing the PPI 7 3...
Page 18: ...RUSKA 7050 7050i 7050LP Users Manual 1 6...
Page 32: ...RUSKA 7050 7050i 7050LP Users Manual 3 4...
Page 60: ...RUSKA 7050 7050i 7050LP Users Manual 5 14...