Agilent Technologies E8285A User Manual page 318

Cdma mobile station test set
Hide thumbs Also See for E8285A:
Table of Contents

Advertisement

Example BASIC program to download an IBASIC program to Test Set
10 OUTPUT 714;"PROG:DEL:ALL"!Delete current program
20 OUTPUT 714;"PROG:DEF #0"!Create program, send header
30 OUTPUT 714;"10 FOR J = 1 TO 10"!1st prog line
40 OUTPUT 714;"20 DISP J"!2nd prog line
50 OUTPUT 714;"30 BEEP"!3rd prog line
60 OUTPUT 714;"40 NEXT J"!4th prog line
70 OUTPUT 714;"50 END"END!Send END message at end of last line
80 END
Syntax (length of program known)
PROGram[:SELected]:DEFine <#><number of digits in count field>
<count field: number of data bytes in program><program data bytes>
The following notation is used in the command description:
The data starts with a header which begins with a "#", followed by a single non-zero
digit in the range 1-9 which specifies the number of digits in the following count field,
followed by a series of digits in the range of 0-9 which gives the number of data bytes
being sent, followed by the number of data bytes specified by the count field.
Example
#16<data byte><data byte><data byte><data byte><data byte><data byte>
Example BASIC program to download an IBASIC program to Test Set
10 OUTPUT 714;"PROG:DEL:ALL"!Delete current program
20 OUTPUT 714;"PROG:DEF #257" !Create program, send header
30 OUTPUT 714;"10 FOR J = 1 TO 10"!18 characters + CR + LF
40 OUTPUT 714;"20 DISP J"!9 characters + CR + LF
50 OUTPUT 714;"30 BEEP"!7 characters + CR + LF
60 OUTPUT 714;"40 NEXT J"!9 characters + CR + LF
70 OUTPUT 714;"50 END"!6 characters
80 END
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6, IBASIC Controller
PROGram Subsystem
317

Advertisement

Table of Contents
loading

Table of Contents