Agilent E5250A User’s Guide, Edition 11
6-5
Programming the E5250A
SCPI Programming Basics
Controlling E5250A by Using HP BASIC
1. Assign I/O path for controlling the E5250A by using the ASSIGN command.
In the following example, the select code of the external computer is 7 and GPIB
address of the E5250A is 22.
10 ASSIGN @Hp5250 TO 722
2. Use OUTPUT command to send SCPI commands to control the E5250A.
3. Use ENTER command to get query response from the E5250A.
Example:
10
REAL Complete
20
!
30
ASSIGN @Hp5250 TO 722
40
!
50
OUTPUT @Hp5250;"*RST"
60
!
70
OUTPUT @Hp5250;":ROUT:FUNC NCON"
80
OUTPUT @Hp5250;":ROUT:CONN:RULE ALL,FREE"
90
OUTPUT @Hp5250;":ROUT:CONN:SEQ ALL,BBM"
100
OUTPUT @Hp5250;":ROUT:CLOS (@10101,10202)"
110 !
120
OUTPUT @Hp5250;"*OPC?"
130
ENTER @Hp5250;Complete
140 !
150
END
Line Number
Description
10
Declares "Complete" as a real number.
30
Assigns I/O path to control the E5250A.
50
Resets the E5250A.
70
Sets the E5250A to Normal channel configuration mode.
80
Sets all cards to free connection rule.
90
Sets all cards to break-before-make connection sequence.
100
Creates channels 10101 and 10202.
120 and 130
Waits until all operations are complete.
Содержание Agilent E5250A
Страница 1: ...Agilent Technologies Agilent E5250A Low Leakage Switch Mainframe User s Guide ...
Страница 10: ......
Страница 16: ...Contents 6 Agilent E5250A User s Guide Edition 11 Contents 12 SCPI Command Summary ...
Страница 17: ...1 Introduction ...
Страница 32: ...1 16 Agilent E5250A User s Guide Edition 11 Introduction Options and Accessories ...
Страница 33: ...2 Installation ...
Страница 51: ...3 Executing Self Test and Leak Test ...
Страница 70: ...3 20 Agilent E5250A User s Guide Edition 11 Executing Self Test and Leak Test Using the Self Test Utility ...
Страница 71: ...4 Setting up Measurement Environment ...
Страница 95: ...5 Controlling the E5250A ...
Страница 137: ...6 Programming the E5250A ...
Страница 169: ...7 Command Reference ...
Страница 224: ...7 56 Agilent E5250A User s Guide Edition 11 Command Reference Output Queue ...
Страница 225: ...8 VXIplug play Driver ...
Страница 256: ...8 32 Agilent E5250A User s Guide Edition 11 VXIplug play Driver Driver Functions ...
Страница 257: ...9 Executing Sample Programs ...
Страница 295: ...10 Specifications ...
Страница 304: ...10 10 Agilent E5250A User s Guide Edition 11 Specifications Supplemental Data when used with Agilent 4155 4156 ...
Страница 305: ...11 Error Messages ...
Страница 318: ...11 14 Agilent E5250A User s Guide Edition 11 Error Messages E5250A Specific Error Messages ...
Страница 319: ...12 SCPI Command Summary ...