Agilent Technologies 66332A, 6634B, 6633B, 6632B, 6614C, 6613C, 6631B, 66312A Programming the DC Source

Models: 6632B 6633B 66332A 6634B

1 103
Download 103 pages 34 Kb
Page 31
Image 31

Programming the DC Source - 3

10!Rev A.00.00

20OPTION BASE 1

30DIM Curr_array(100)

40!

50ASSIGN @Ps TO 705

60ASSIGN @Ld TO 706

80

OUTPUT

@Ps;"*RST"

!

Sets

supply to default values

90

OUTPUT

@Ps;"OUTP ON"

!

Turn

on power supply output

100OUTPUT @Ps;"VOLT 5;CURR 5"! Program power supply to 5 volts, 5 amps

110!

120OUTPUT @Ld;"CURR:LEVEL 0"! Set up electronic load to produce pulses

130OUTPUT @Ld;"CURR:TLEVEL 3"

140!

150OUTPUT @Ld;"TRAN:FREQ 1000"

160OUTPUT @Ld;"TRAN:DCYCLE 10"

170OUTPUT @Ld;"TRAN:MODE CONT"

180OUTPUT @Ld;"TRAN:STATE ON"

190!

200

OUTPUT @Ps;"SENS:CURR:DET

ACDC"

! Set

meter to ACDC

210

OUTPUT @Ps;"SENS:CURR:RANG MAX"

! High Current range

220

OUTPUT @Ps;"TRIG:ACQ:SOUR

INT"

! Set

to trigger on pulse

230

OUTPUT @Ps;"SENS:FUNC ""CURR"""

! Acquire current reading

240

OUTPUT @Ps;"TRIG:ACQ:LEV:CURR .1"

! Trigger at 0.1 amps

250OUTPUT @Ps;"TRIG:ACQ:SLOPE:CURR POS" ! Trigger on positive slope

260OUTPUT @Ps;"TRIG:ACQ:HYST:CURR .05" ! Set hysteresis of trigger

270 OUTPUT @Ps;"SENS:SWE:TINT 20E-6"

! Set sample time interval to 20us

280OUTPUT @Ps;"SENS:SWE:POIN 100" ! Set number of measurement samples in sweep

290OUTPUT 705;"SENS:SWE:OFFS:POIN -20" ! Number of sample points before trigger

300

OUTPUT @Ps;"INIT:NAME ACQ"

! Initiate the trigger system.

310

!

Controller now waits for trigger to occur.

320

OUTPUT @Ps;"FETCH:ARRAY:CURR?"

! Get the data after measurement completes.

330

!

 

340

ENTER @Ps;Curr_array(*)

! Enters all 100 data points

350

PRINT Curr_array(*)

! Print all data points

360

!

 

370

OUTPUT @Ps;"FETCH:CURR:MAX?"

! Get more data from previous measurement.

380

ENTER @Ps;Curr_max

 

390PRINT "MAX CURRENT",Curr_max

400!

410OUTPUT @Ps;"FETCH:CURR:MIN?"

420ENTER @Ps;Curr_min

430PRINT "MIN CURRENT",Curr_min

440!

450OUTPUT @Ps;"FETCH:CURR:HIGH?"

460ENTER @Ps;Curr_hi

470PRINT "HIGH CURRENT",Curr_hi

480!

490OUTPUT @Ps;"FETCH:CURR:LOW?"

500ENTER @Ps;Curr_low

510PRINT "LOW CURRENT",Curr_low

520!

530END

When this program runs, it returns 100 measurement data points as well as the MIN, MAX, HIGH, and LOW data in the following format:

.030585

.031869

.0344369

.031655

.0320829

.0325109

.0333669

.0340089

.0320825

.031449

.031227

.031441

.0337949

.0327249

.031869

.031655

.0327249

.031013

.0325109

.0333669

3.09751

3.1814

3.14266

3.13667

3.13817

3.13624

.977283

.0667496

.0245932

.0280171

.031013

.031655

.0331529

.0350788

.0348648

.0327249

.031227

.0327249

.031227

.030799

.031869

.0329389

.030371

.031655

.031869

.0329389

.031869

.0322869

.0320829

.0325109

.0333669

.0340089

.0348648

.0327249

.031227

.0327249

.0320829

.030371

.031449

.031227

.031441

.0337949

.031449

.0333669

.031441

.0337949

.030371

.031655

.031869

.0329389

.031869

.0293011

.031441

.0337949

.0327249

.031869

.031655

.031655

.0320829

.031227

.0322969

.031655

.0327249

.0340089

2.97661

3.18632

3.14523

3.13496

3.13453

3.13731

1.32438

.0836549

.0258772

.0284451

.0275891

.0329389

.0329389

.0333669

.0322969

.0333669

 

 

 

 

MAX CURRENT

3.18632

 

 

 

 

 

MIN CURRENT

.0245932

 

 

 

 

 

HIGH CURRENT

3.1371

 

 

 

 

 

LOW CURRENT

.0314077

 

 

 

 

 

31

Page 31
Image 31
Agilent Technologies 66332A, 6634B, 6633B, 6632B, 6614C, 6613C, 6631B, 66312A, 6612C, 6611C manual Programming the DC Source