Serial Operation; Sample Programs; Sample Program 1 - Ruska 7750I Gpib (Ieee-488) - Controls Pressure To 20.000 %Fs - Fluke RUSKA 7750i User Manual

Air data test set
Table of Contents

Advertisement

RUSKA 7750i
Users Manual

Serial Operation

The RS-232 port accepts the same SCPI commands as the IEEE-488 port. The commands
can be terminated by a carriage return (hexadecimal 0D) or a line feed (hexadecimal 0A).
The responses are always terminated by a carriage return followed by a line feed.
The serial port also supports XON/XOFF. When the XOFF (hexadecimal 13) command
is received, the ADTS will stop transmitting. Transmission is restarted when the
XON (hexadecimal 11) command is received.
When only one unit is attached, the Control-C (hexadecimal 03) command will clear
the transmit and receive buffers and disable addressing. When addressing is disabled,
the unit will respond to commands without being addressed.

Sample Programs

Sample Program 1 — RUSKA 7750i GPIB (IEEE-488) — Controls Pressure to
20.000 %FS
5-10
/*--------------------------------------------------------------------*/
/*
Sample Program 1 - 7750 GPIB (IEEE-488)
/*
/*
Controls pressure to 20.000 %FS
/*--------------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#include "decl.h"
/*--------------------------------------------------------------------*/
int
device;
char
buffer[256];
double pressure;
int
status;
int
check_errors (void);
void
write_7000 (char *s);
void
request_7000 (char *s);
/*--------------------------------------------------------------------*/
void main (void)
{
char *p;
/*---------------------------*/
/* Initialize GPIB Interface */
/*---------------------------*/
device = ibdev (0,
4,
NO_SAD,
T1s,
0,
REOS+LF);
if (ibsta & ERR)
{ printf ("GPIB Driver not installed.\n");
return;
}
/*-----------------------------------------------------------*/
/* Initialize 7750 Interface
/*
/*
UNIT %FS
/*
PRES 20.0
/*
PRES:TOL 0.001
/*
OUTP:MODE CONTROL
/*-----------------------------------------------------------*/
write_7000 ("UNIT %FS;:PRES 20.0;TOL 0.001;:OUTP:MODE CONTROL\n");
if (check_errors ( ))
{ ibonl (device, 0);
return;
/* GPIB Device descriptor */
/* buffer for input/output strings */
/* Pressure read from unit */
/* Status register from unit */
/* First GPIB Board */
/* GPIB Address of 7010 */
/* No secondary addressing */
/* 1 Second Timeout */
/* No automatic EOI for transmit */
/* Terminate read on Line Feed */
Set units to percent of full scale */
Set control setpoint to 20 %FS
Set control tolerance to 0.001 %FS */
Enter control mode
*/
*/
*/
*/
*/
*/
*/

Advertisement

Table of Contents
loading

Table of Contents