![Agilent Technologies 4294A Скачать руководство пользователя страница 117](http://html.mh-extra.com/html/agilent-technologies/4294a/4294a_programming-manual_2867882117.webp)
Chapter 8
117
Saving/Recalling a Measurement Result/Measurement Setup
Sample Program for Save/Recall
1. Ch
apter
T
itle
2.
Ch
ap
te
r
T
itl
e
4
. Chap
te
r T
itle
5. Chpter
T
itle
8.
Sa
vin
g
/R
ec
allin
g
a
Me
asur
eme
n
t Re
su
lt/
Me
asur
eme
n
t Se
t
u
p
Example 8-1
Save/recall
10 DIM File$[9],Inp_char$[30],Err_mes$[50],Extension$[9],Command$[9]
20 INTEGER Content,Err_no
30 CLEAR SCREEN
40 IF SYSTEM$("SYSTEM ID")="HP4294A" THEN
50 ASSIGN @Hp4294a TO 800
60 ELSE
70 ASSIGN @Hp4294a TO 717
80 END IF
90 !
100 OUTPUT @Hp4294a;"STOD FLASH"
110 CALL Inp_file_name(File$)
120 !
130 ON ERROR GOTO Data_select
140 Data_select: !
150 PRINT "Select Saved Content"
160 PRINT " 1: State and Data"
170 PRINT " 2: Data (Binary file)"
180 PRINT " 3: Data (ASCII file)"
190 PRINT " 4: LCD Image"
200 INPUT "Input 1 to 4",Inp_char$
210 Content=IVAL(Inp_char$,10)
220 IF Content<1 OR Content>4 THEN Inp_start
230 OFF ERROR
240 !
250 SELECT Content
260 CASE 1
270 Extension$=".STA"
280 Command$="SAVDSTA"
290 CASE 2
300 PRINT "Select Data Content"
310 Select_array(@Hp4294a,"DATA TRACE","SAVDTRC")
320 Select_array(@Hp4294a,"MEMORY TRACE","SAVMTRC")
330 Select_array(@Hp4294a,"DATA","SAVDAT")
340 Select_array(@Hp4294a,"MEMORY","SAVMEM")
350 Select_array(@Hp4294a,"CAL & COMP DATA","SAVCAL")
360 Extension$=".DAT"
370 Command$="SAVDDAT"
380 CASE 3
390 PRINT "Select Data Content"
400 Select_array(@Hp4294a,"DATA TRACE","SAVDTRC")
410 Select_array(@Hp4294a,"MEMORY TRACE","SAVMTRC")
420 Select_array(@Hp4294a,"DATA","SAVDAT")
430 Select_array(@Hp4294a,"MEMORY","SAVMEM")
440 Select_array(@Hp4294a,"CAL & COMP DATA","SAVCAL")
450 Extension$=".TXT"
460 Command$="SAVDASC"
470 CASE 4
480 Extension$=".TIF"
490 Command$="SAVDTIF"
500 END SELECT
510 !
520 Save_file: !
530 OUTPUT @Hp4294a;"*CLS"
540 OUTPUT @Hp4294a;Command$&" """&File$&""""
550 OUTPUT @Hp4294a;"OUTPERRO?"
560 ENTER @Hp4294a;Err_no,Err_mes$
570 IF Err_no=(-257) THEN
580 PRINT "Error: "&Err_mes$
590 PRINT "[C]hange File Name / [P]urge File / [E]nd"
600 INPUT "Input C or P or E",Inp_char$
610 IF UPC$(Inp_char$)="C" THEN
Содержание 4294A
Страница 4: ...4 ...
Страница 18: ...18 Contents ...
Страница 24: ...24 Chapter1 To make effective use of this manual Other manuals attached to this unit ...
Страница 94: ...94 Chapter6 Reading Writing Measurement Data Reading Writing Data ...
Страница 110: ...110 Chapter7 Processing Measurement Results Analyzing Measurement Results ...
Страница 130: ...130 Chapter9 Communication with External Equipment Using the I O Ports Sample Program to Use the I O Port ...
Страница 136: ...136 Chapter10 Handling Errors Sample program for error handling ...
Страница 246: ...246 13 Application Sample Programs File Transfer Function ...
Страница 254: ...254 Chapter15 Setting the Display LCD Sample program for setting the LCD screen ...
Страница 507: ...Index Index 507 Index ...
Страница 508: ...508 Index Index ...
Страница 509: ...Index Index 509 Index ...
Страница 510: ...510 Index Index ...
Страница 511: ...Index Index 511 Index ...
Страница 512: ...512 Index Index ...
Страница 513: ...Index Index 513 Index ...
Страница 514: ...514 Index Index ...
Страница 515: ...Index Index 515 Index ...
Страница 516: ...516 Index Index ...
Страница 517: ...Index Index 517 Index ...
Страница 518: ...518 Index Index ...