EasyManua.ls Logo

Keysight 34420A - Page 245

Keysight 34420A
307 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Application Programs 6
Keysight 34420A User’s Guide 241
... continued
230 !
240 ! Configure the GPIB interrupt system to generate an SRQ
250 !
260 Gpib=7 ! GPIB select code is "7"
270 ON INTR Gpib CALL Read_data ! Call subprogram when operation complete
280 Mask=2 ! Bit 1 is SRQ
290 ENABLE INTR Gpib;Mask ! Enable SRQ to interrupt program
300 !
310 OUTPUT @Meter;"SENS:FUNC ’VOLT:DC’" ! Select dc volts on channel 1 (default)
320 OUTPUT @Meter;"SENS:VOLT:DC:RANG 10" ! Select 10 volt range
330 OUTPUT @Meter;"SENS:VOLT:DC:NPLC 10" ! Select 10 power line cycles
340 OUTPUT @Meter;"CALC:FUNC SCAL" ! Select math scaling function
350 OUTPUT @Meter;"CALC:STAT ON" ! Turn math scaling on
360 OUTPUT @Meter;"CALC:SCAL:GAIN 0.001" ! Set the gain value (1 mV)
370 OUTPUT @Meter;"CALC:SCAL:OFFS 0.5" ! Set the offset value (50 mV)
380 !
390 OUTPUT @Meter;"SAMP:COUN 5" ! Take 5 reading per trigger
400 OUTPUT @Meter;"TRIG:SOUR EXT" ! Select external trigger source
410 OUTPUT @Meter;"INIT" ! Initiate measurement, wait for trigger,
420 ! and send readings to internal memory
430 OUTPUT @Meter;"*OPC" ! Set "Operation Complete" bit in
440 ! Standard Event Register when complete

Table of Contents

Related product manuals