Level - Agilent Technologies 3458A User Manual

Hide thumbs Also See for 3458A:
Table of Contents

Advertisement

LEVEL

Syntax
30 Num_readings=50
40 ALLOCATE REAL Rdgs(l:Num_readings) !CREATE ARRAY FOR READINGS
50 ASSIGN @Dvm TO 722
60 ASSIGN @Buffer TO BUFFER[4*Num_readingsl!ASSIGN BUFFER I/O PATH NAME
70 OUTPUT @Dvm;"PRESET NORM;RANGE 10;OFORMAT DINT;NRDGS ";Num_readings
75 !TARM AUTO, TRIG SYN, DCV 10V RANGE, DINT OUTPUT FORMAT, NRDGS 50,AUTO
80 TRANSFER @Dvm TO @Buffer;WAIT!SYN EVENT,TRANSFER READINGS
90 OUTPUT @Dvm; "ISCALE?"
100 ENTER @Dvm;S
110 FOR I=1 TO Num_readings
120 ENTER @Buffer USING "#,W,W";J,K
121 !WORD INTO EACH VARIABLE J AND K (# = STATEMENT TERMINATION NOT
125 !REQUIRED; W
130 Rdgs(I)=(J*65536.+K+65536.*(K<O))
140 R=ABS(Rdgs(I))
150 IF R>2147483647 THEN PRINT "OVLD" !IF OVERLOAD OCCURRED, PRINT MESSAGE
160 Rdgs(I)=Rdgs(I)*S
170 Rdgs(I)=DROUND(Rdgs(I),8)
180 PRINT Rdgs(I)
190 NEXT I
200 END
The LEVEL command specifies the level triggering voltage (as a percentage of
the present range) and the coupling (AC or DC) for level triggering. A level trigger
event occurs when the input signal reaches the specified voltage on its
positive-going or negative-going slope as specified by the SLOPE command.
LEVEL [percentage][,coupling]
percentage
Specifies the percentage of the present range for level triggering. The valid range
for this parameter is -500% to +500% in 5% steps for direct- or sub-sampling or
-120% to 120% in 1% steps for DC voltage (refer to Chapter 5 for details).
Power-on percentage = 0% (0V).
Default percentage = 0% (0V).
The full scale values for direct-sampling are 500% (5 times) the ranges of 10mV
100mV, 1V, 10V, and 100V. When specifying the level triggering percentage,
remember to use a percentage of the range. For example, assume the input signal
has a peak value of 20V and you are using the 10V range. If you want to level
trigger at 15V, you would specify a level triggering percentage of 150% (LEVEL
150 command).
coupling
The coupling parameter selects the coupling of the signal to the level-detection
!NUMBER OF READINGS = 50
!ASSIGN MULTIMETER ADDRESS
!QUERY SCALE FOR DINT
!ENTER SCALE FACTOR
!ENTER ONE 16-BIT 2'S COMPLEMENT
= ENTER DATA AS 16-BIT 2'S COMPLEMENT INTEGER)
!CONVERT TO REAL NUMBER
!USE ABSOLUTE VALUE TO CHECK FOR OVLD
!APPLY SCALE FACTOR
!ROUND CONVERTED READING
!PRINT READINGS
Chapter 6 Command Reference

LEVEL

189

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents