... continued
280 !************************************************************************
290 Getdata: DEF FNGetdata(Address)
300 REPEAT
310 UNTIL BIT(SPOLL(Address),5) !Bit 5 is Standard Event Reg
320 OUTPUT Address;"*CLS" !Clear status
330 OUTPUT Address;"CALC:AVER:AVER?" !Get average
340 ENTER Address;Result
350 OUTPUT Address;"CALC:FUNC AVER" !Resets average to 0
360 OUTPUT Address;"*OPC"
370 OUTPUT Address;"INIT" !Start taking next readings
380 RETURN Result
390 FNEND
400 !************************************************************************
410 Setup_meter: SUB Setup_meter(Address,Range,Nplc,Num_samples)
420 OUTPUT Address;"*CLS" !Clear Status
430 OUTPUT Address;"SENSE:VOLTAGE:RANGE "&VAL$(Range) !
440 OUTPUT Address;"INPUT:FILTER:STATE OFF" !
450 OUTPUT Address;"SENSE:VOLTAGE:DC:NPLC "&VAL$(Nplc) !
460 OUTPUT Address;"CALC:FUNC AVER" !Take average of
470 OUTPUT Address;"CALC:STATE ON" !Num_samples
480 OUTPUT Address;"SAMPLE:COUNT "&VAL$(Num_samples)
490 OUTPUT Address;"TRIGGER:SOURCE IMM"
500 OUTPUT Address;"*ESE 1" !Enable register mask
510 OUTPUT Address;"*OPC" !for *OPC
520 OUTPUT Address;"INIT"
530 SUBEND
540 !************************************************************************
Chapter 6 Application Programs
HP BASIC Language Programs
222
Summary of Contents for 34420A
Page 1: ......
Page 2: ......
Page 13: ...1 Quick Start ...
Page 31: ...2 Front Panel Operation ...
Page 55: ...3 Features and Functions ...
Page 117: ...4 Remote Interface Reference ...
Page 200: ...5 Error Messages ...
Page 213: ...6 Application Programs ...
Page 245: ...6 Chapter 6 Application Programs Microsoft Excel Macro Example 245 ...
Page 246: ...Chapter 6 Application Programs Microsoft Excel Macro Example 246 ...
Page 247: ...7 Measurement Tutorial ...
Page 274: ...8 Specifications ...
Page 279: ...Dimensions Chapter 8 Specifications 34420A Nano Volt Micro Ohm Meter 280 ...
Page 294: ......