Agilent Technologies 35670A Manual page 427

Dynamic signal analyzer gpib programming
Hide thumbs Also See for 35670A:
Table of Contents

Advertisement

PROGram[:SELected]:DEFine
Loads an Instrument BASIC program from an external controller into the active program buffer.
Command Syntax:
<PROGRAM> ::= <BLOCK>
<BLOCK> ::= #<byte>[<length_bytes>]<data_bytes>
<byte> ::= one byte specifying the number of length bytes
<data_bytes> ::= the bytes that define an Instrument BASIC program
Example Statements:
Indefinite Block
Definite Block
Query Syntax:
Return Format:
Attribute Summary:
Description:
This command transfers a program between the analyzer and your controller. This allows you to develop
a program on your controller and then load it into the analyzer.
Use the PROG[:SEL]:NAME to select the active program buffer.
When you transfer a program to the analyzer, you can use either the definite or the indefinite length block
syntax. The simplest way to load an Instrument BASIC program into the analyzer is to send this
command followed by #0, followed by all the characters making up the program (including line numbers
and line feeds at the end of each program statement). Terminate the entire command with line feed
character (ASCII decimal 10) and <^END> (the GPIB END message, EOI set true).
When the analyzer returns the program to your controller, it always uses the definite length block syntax.
See "GPIB Message Syntax" in the GPIB Programmer's Guide for more information.
PROGram[:SELected]:DEFine <PROGRAM>
to follow (ASCII-encoded)
OUTPUT 711;":PROG:DEF #0";
OUTPUT 711;"10 PRINT ""HELLO WORLD"""&CHR$(10);
OUTPUT 711;"20 END"&CHR$(10);
OUTPUT 711;CHR$(10) END
OUTPUT 711;":PROG:DEF #230";
OUTPUT 711;"10 PRINT ""HELLO WORLD"""&CHR$(10);
OUTPUT 711;"20 END"&CHR$(10);
PROGram[:SELected]:DEFine?
definite length <BLOCK>
Option:
1C2 Instrument BASIC
Synchronization Required:
Preset State:
not applicable
SCPI Compliance:
no
confirmed
PROGram
command/query
17-5

Advertisement

Table of Contents
loading

Table of Contents