HP E1429A User Manual Page 24

  • Download
  • Add to my manuals
  • Print
  • Page
    / 420
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 23
HP BASIC
10 !Assign an I/O path between the computer and digitizer.
20 ASSIGN @A_d TO 70905
30 COM @A_d
40 !Call the subprogram
50 Rst_cls
60 END
70 !
80 SUB Rst_cls
90 Rst_cls: !subprogram which resets and clears the digitizer.
100 COM @A_d
110 OUTPUT @A_d;"*RST;*CLS;*OPC?" !reset and clear
120 ENTER @A_d;Complete
130 SUBEND
RSTCLS.C
/* RSTCLS.C - This program resets the digitizer and clears its status register */
/* Include the following header files */
#include <stdio.h>
#include <cfunc.h> /* This file is from the HP-IB Command Library Disk */
#define ADDR 70905L /* I/O path from PC to the digitizer, via the E1406 */
/* Function Prototypes */
void rst_clr(void);
/****************************************************************************/
void main(void) /* Run the program */
{
rst_clr(); /* Reset and clear the digitizer */
}
/****************************************************************************/
void rst_clr(void)
{
IOOUTPUTS(ADDR, "*RST;*CLS", 9); /* reset and clear the digitizer*/
}
24 Gettin
g
Started Chapter 1
Page view 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 419 420

Comments to this Manuals

No comments