600! CHECKING THE INSTRUMENT STATUS, YOU CAN AVOID TIMING PROBLEMS. ALSO, ANY OTHER OPERATIONS

610! THAT TAKE TIME WILL GIVE THE MODULES A CHANCE TO COMPLETE PROCESSING.

620!

630REPEAT

640

OUTPUT @Slot2;"STATUS:OPERATION:CONDITION?"

 

650

ENTER @Slot2;Condition_data

 

 

660

UNTIL BIT(Condition_data,5)

!

TEST FOR BIT 5 = TRUE

670

!

 

 

680! GENERATE A TRIGGER AND MAKE A MEASUREMENT FOR EACH TEST CONDITION

690!

700FOR Loop_count=1 TO Num_test_steps

710

OUTPUT @Slot0;"*TRG"

!

SEND Agilent -1B BUS TRIGGER

720GOSUB Get_measurement

730NEXT Loop_count

740!

750STOP

760!

770Get_measurement:

780!

790! THIS IS JUST TO SHOW YOU WHERE YOU WOULD ADD CODE TO GET DATA FROM THE MEASUREMENT INSTRUMENT.

800! THE MEASUREMENT MUST TAKE LONGER THAN THE PROGRAMMED DWELL TIME OR YOU WILL MISS TRIGGERS.

810!

820WAIT .1

830!

840RETURN

850!

860END

Figure B6-3. Agilent BASIC Program Listing for Application #6

94 Application Programs

Page 93
Image 93
Agilent Technologies 66lxxA manual Repeat, Return