75
────────────────────────────────────────────────────
8.2 Sample programs
────────────────────────────────────────────────────
Setting memory 1
Output current value: 25.0 A
Maximum test value: 0.100
Ω
Test time: 60.0 s
Setting memory 2
Output current value: 10.0 A
Maximum test value: 1.00 V
Test time: 10.0 s
Setting memory 3
Output current value: 25.0 A
Maximum test value: 0.100
Ω
Test time: 5.0 s
Setting memory 4
Output current value: 15.0 A
Maximum test value: 1.50 V
Test time: OFF
Setting memory 5
Output current value: 10.0 A
Maximum test value: 0.100
Ω
Test time: 5.0 s
170-240
Make test settings.
250-270
Check that a test has started.
280-320
Confirm that the 3157 is in the TEST state.
330-360
Check that a test has finished.
370-400
Query the test results.
410
Close the RS-232C circuit file.
Sample display
Press any key to start
25.0,0.020,60.0,PASS
(2) Saving the basic settings
This program sets the 3157 to the following test values, and then save them in
Setting memory.
Program List
100 OPEN "COM1:9600,N,8,1" FOR RANDOM AS #1
110 STATE.CK1:
120 PRINT #1,":STAT?"
130 LINE INPUT #1,A$
140 IF A$="READY" THEN GOTO SETTING1
150 PRINT #1,":STOP"
160 GOTO STATE.CK1
170 SETTING1:
180 PRINT #1,":CONF:CURR 25.0"
190 PRINT #1,":UNIT OHM"
200 PRINT #1,":UPP ON"
210 PRINT #1,":CONF:RUPP 0.100"
220 PRINT #1,":TIM ON"
230 PRINT #1,":CONF:TIM 60.0"
240 PRINT #1,":MEM:SAVE 1"
250 STATE.CK2:
260 PRINT #1,":STAT?"
270 LINE INPUT #1,B$
280 IF B$<>"READY" THEN GOTO STATE.CK2
290 SETTING2:
300 PRINT #1,":CONF:CURR 10.0"
310 PRINT #1,":UNIT VOLT"
320 PRINT #1,":UPP ON"
330 PRINT #1,":CONF:VUPP 1.00"
340 PRINT #1,":TIM ON"
350 PRINT #1,":CONF:TIM 10.0"
360 PRINT #1,":MEM:SAVE 2"
Содержание 9593-02
Страница 2: ......
Страница 6: ...ii Introduction...
Страница 16: ...10 2 3 Specifications...
Страница 76: ...70 8 1 Sample program Flowchart...
Страница 86: ...80 8 2 Sample programs...
Страница 88: ...82...
Страница 89: ......
Страница 90: ......
Страница 91: ......
Страница 92: ......