3 - Programming Examples230 OUTPUT 705;"INPUT OFF" ! Disables the input at end of test240 PRINT "Burn-in test complete at ";TIME$(TIMEDATE)250 STOP260 !270 Srq_service ! Service request subroutine280 Load_status=SPOLL(705) ! Conduct serial poll290 IF BIT(Load_status, 6) THEN ! Check if SRQ bit is set300 GOSUB Check_unr310 ELSE320 PRINT "A condition other than UNR generated SRQ at ";TIME$(TIMEDATE)330 END IF ! You can also check the other bits340 ENABLE INTR 7 ! Re-enable interrupts before return350 RETURN360 !370 Check_unr ! Check if UNR bit still set380 WAIT 1 ! Wait 1 s before reading UNR bit390 OUTPUT 705;"STAT:CHAN:COND?" ! Read channel condition register400 ENTER 705;Value410 IF Bit(Value, l0)=0 THEN ! Return value for UNR bit only420 OUTPUT 705;"*CLS" ! If 0, clear channel event register430 PRINT "UNR was momentarily asserted at ";TIME$(TIMEDATE)440 ELSE450 OUTPUT 705;"INPUT OFF" ! Disables the inputs460 PRINT "UNR is asserted at ";TIME$(TIMEDATE);" Input is turned off"470 STOP480 END IF490 RETURN500 ENDC++ Programming ExampleThis program demonstrates the use of lists and triggered measurements in a Keysight N3300A ElectronicLoad. The load is programmed to step through three values of current at 1 second intervals. At eachcurrent step, the load measures its own current by sampling it 50 times at 10 microsecond intervals. Theprogram reads back all of the data, averages the 50 samples for each of the three current steps, andoutputs the results. After each current step, the measurement is delayed by 100us to allow the current tosettle.#include #include #include "sicl.h"#define MEAS_BUF_SIZE 4096 /* Size of measurement buffer in load. *//* SICL error handler */void ErrorHandler(INST id, int error){printf("SICL error %d\n", error);exit(1);}/* Each triggered measurement consists of nPoints samples. If multiple* triggered measurements are taken, all of the samples (nPoints times the* number of measurements) are placed in the load's measurement buffer.* This function averages the samples in the buffer that are associated* with one triggered measurement. When nIndex is 0, the first set of* nPoints samples are averaged; when nIndex is 1, the 2nd set of nPoints* samples are averaged; etc.*/52