HP (Hewlett-Packard) B Network Router User Manual


 
HP BASIC
10 DIM Setting$[1000]
20 OUTPUT 70905;"CONF?" !query CONFigure command
30 ENTER 70905;Setting$
40 PRINT Setting$
50 END
QUERY.C
/* This program queries HP E1429 settings */
/* Include the necessary header files */
#include <stdio.h>
#include <string.h>
#include <cfunc.h> /* from HP-IB command library */
/* Define E1429 HP-IB address macro */
#define ADDR 70905L /* I/O path between the PC and the digitizer */
/* Function prototypes */
void query(void);
void main(void)
{
query(); /* function call to query HP E1429 parameters */
}
/****************************************************************************/
void query(void)
{
char *gets();
char qry_cmd[80]; /* query command array */
char qry_resp[80]; /* query response array */
int length = 80;
/* Query user for digitizer query command */
printf("\nEnter query command: ");
gets(qry_cmd); /* get input string (query command) */
Continued on Next Page
44 Getting Started Chapter 1