Introductory Programs; Afg Self-Test - HP E1340A User Manual

Arbitrary function generator
Hide thumbs Also See for E1340A:
Table of Contents

Advertisement

Introductory Programs

AFG Self-Test

Table 1-1. HP E1340A Self-Test Codes.
HP IBASIC (SLFTST)
Chapter 1
The introductory programs in this section include:

AFG Self-Test

Resetting the AFG and clearing its status registers
Querying the AFG power-on/reset settings
Checking for Errors
Generating a sine wave
The AFG self-test is executed with the command:
*TST?
Self-Test Code
0
Test passed
1
Test failed. An error message describes the failure.
The self-test checks communication between the E1340A and the E1300/01
mainframe or Command Module. Upon completion of the test, one of the
self-test codes listed in Table 1-1 is returned.
1
!RE-SAVE "SLFTST"
10
!Send the self-test command, enter and display the result.
20
DIM Message$[256]
30
OUTPUT 80910;"*TST?"
40
ENTER 80910;Rslt
50
IF Rslt <>0 THEN
60
REPEAT
70
OUTPUT 80910;"SYST:ERR?"
80
ENTER 80910;Code,Message$
90
PRINT Code,Message$
100
UNTIL Code=0
110
END IF
120
PRINT Rslt
130
END
Description
Getting Started with the HP E1340A
36

Advertisement

Table of Contents
loading

Table of Contents