beautypg.com

Teledyne LeCroy X-STREAM OSCILLOSCOPES Remote Control User Manual

Page 271

background image

GPIB Program Examples

WM-RCM-E Rev D

ISSUED: February 2005

265

LINE INPUT "Specify target memory (M1...M4) : ",MEM$
LINE INPUT "Enter filename : ",FILE$
CALL IBCMD (BRD0%,DSOListen$)
CMD$=MEM$+":" : CALL IBWRT (BRD0%,CMD$)
CALL IBWRTF (BRD0%,FILE$)
IF IBSTA% < 0 THEN GOSUB GPIBError : STOP
PRINT : RETURN

GPIBError :
PRINT "GPIB ERROR -- IBERR : ";IBERR%;"IBSTA : ";HEX$ (IBSTA%) : RETURN

END

N

N

O

O

T

T

E

E

:

: The Template also describes an array named DUAL. This is

simply a way to allow you to use the INSPECT? query to examine

the two data arrays together.