Agilent Technologies ESG Specifikace Strana 38

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 259
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 37
1-34 Programming Guide
Preparing for Use ESG Family Signal Generators
Getting Started with SCPI
Reading Instrument Errors
When debugging a program, you may want to know if an instrument error has occurred.
The signal generator can display error messages on their front panel displays. If your
system includes an instrument that does not have this capability, you can put the following
code segment in your program to read error messages and print them on the controller’s
display.
10 !
20 ! The rest of your
30 ! variable declarations
40 Assign @box to 719
50 DIM Err_msg$[75]
60 INTEGER Err_num
70 !
80 ! Part of your program
90 ! that generates errors
100 !
110 !
200 REPEAT
210 OUTPUT @Box;":SYST:ERR?"
220 ! Query instrument error
230 ENTER @Box;Err_num,Err_msg$
240 ! Read error #, message
250 PRINT Err_num,Err_msg$
260 ! Print error message
270 UNTIL Err_num = 0
280 ! Repeat until no errors
290 !
300 ! The rest of your program
310 !
Zobrazit stránku 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 258 259

Komentáře k této Příručce

Žádné komentáře