Agilent Technologies 54503A Guide de l'utilisateur Page 461

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 716
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 460
Chapter 7 461
Language Reference
ERR Error
Example
10 DIM Err$[200]
20 OUTPUT 718;"ERR?;"
30 ENTER 718;Err$
40 PRINT Err$
50 !the following routine removes the comma between error
sin
a string
60 Position_comma=POS(Err$,",")
70 IF Position_comma>0 THEN
80 !multiple errors
90 First_error=VAL(Err$)
100 PRINT First_error
110 Err$=Err$[POS(Err$,",")+1]
120 REPEAT
130 Position_comma=POS(Err$,",")
140 Next_error=VAL(Err$)
150 PRINT Next_error
160 IF Position_comma THEN Err$=Err$[POS(Err$,",")+1]
170 UNTIL Position_comma=0
180 ELSE
190 Err=VAL(Err$)
200 IF Err<0 THEN
210 PRINT Err
220 ELSE
230 PRINT "NO ERRORS"
240 END IF
250 END IF
260 !end routine
270 END
Vue de la page 460
1 2 ... 456 457 458 459 460 461 462 463 464 465 466 ... 715 716

Commentaires sur ces manuels

Pas de commentaire