Télécharger Imprimer la page

Keysight Technologies 3458A Guide D'utilisation page 395

Multimètre

Publicité

Math errors
When evaluating a math expression, the following errors may occur. The 3458AA
treats math errors just like any other execution errors. Refer to chapter 3 for more
information on handling errors.
Error description
Division by Zero
Real Overflow
Real Underflow
Integer Overflow
Square Root of a Negative Number
Log of a Non-Positive Number
Illegal Real Number
Trig Argument Out of Range
BCD Exponent Too Big
HEX, Octal, or Decimal Argument Error
Making comparisons work
If you are making mathematical comparisons between integer numbers, no
special precautions are necessary. However, if you are comparing REAL numbers,
especially those which are the results of calculations, it is possible that you might
run into problems due to rounding and other limitations inherent in the system.
For example, consider the use of the IF...THEN statement to check for equality in
any situation resembling the following example.
10 OUTPUT 722; "SUB TESTER"
20 OUTPUT 722; "LET A=25.3765477"
30 OUTPUT 722; "IF SIN(A)^2 + COS(A)^2 = 1 THEN"
40 OUTPUT 722; " DISP 'EQUAL'"
50 OUTPUT 722; "ELSE"
60 OUTPUT 722; " DISP'NOT EQUAL'"
70 OUTPUT 722; " ENDIF"
80 OUTPUT 722; "SUBEND"
Keysight 3458A User's Guide
BASIC Language for the 3458A
7
395

Publicité

loading