Download Chapter 1 Contents
Transcript
C-size Mainframe GPIB PORT GPIB Figure 5-22. Passing Control Run this program first in the HP 9000 Series 200/300 computer: 10 20 30 ! RE-SAVE "PASSCTL2" REAL Volts(1:10) Create array for readings ON INTR 7 GOTO Have_control Set up branch on PASS CONTROL 40 ENABLE INTR 7;-32768. Enable detection of PASS CONTROL 50 ! 60 ! Wait here until control passed 70 ! 80 LOOP 90 DISP "WAITING FOR CONTROL ";Count_ 100 Count_=Count_+1 110 END LOOP 120 Have_control:OFF INTR 7 Deactivate interrupt 130 ASSIGN @File TO "DATA1:,700" Set up path to file 140 ASSIGN @Comp709 TO 709 Set up path to Command Module 150 ENTER @File;Volts(*) Read data from file 160 ASSIGN @File TO * Close data file 170 FOR I=1 TO 10 Print selected results 180 PRINT Volts(I) 190 NEXT I 200 PASS CONTROL @Comp709 Return control 210 DISP "DONE" 220 END 5-54 System Controller Mode Operation