J
jack
Guest
"The HP3577A can provide a hardcopy of the CRT screen without a computer.
It does this by direcctly controlling a digital plotter connected to the
HP3577A's HP-IB port located on the rear panel. The plotter (such as the
HP7475A) must accept Hewlett Packard Graphic Language (HP-GL) commands. The
HP3577A must be configured in a Talk Only mode and the plotter must be
configured as a Listen Only device. Refer to SPECIAL FUNCTIONS in the
Reference Section."
If it's HP-GL instead of writing to a plotter, write to a text file.
Here are 2 Examples from the USER Manual which I OCR'd
100!
110! Controller responds to plot completion by polling the bus
120! CONTROL lines (SRQ-1024) pulled by the instrument's EOT
130! bit.
140!
150Adrs-711 ! HP 3577A address
160Plotter-705 ! Plotter address
170Done_bit-l ! End of Transfer bit (BO) - 1
180!
190OUTPUT Adrs; "SQM" ;Done_bit ! Unmask EOT bit
200!
210REPEAT
220X- SPOLL(Adrs) ! SPOLL to clear previous EOT bit
230UNTIL NOT BINAND(X,Done_bit)
240!
250! Next, start the plot.
260!
270SEND 7;UNL MTA LISTEN Adrs MOD 100 DATA "PLA" LISTEN Plotter MOD 100
TALKAdrs MOD 100 DATA
280I
290DISP "WAITING FOR PLOT COMPLETION"
300LOOP
310STATUS 7,7;X 1 Read bus control and data lines
320EXIT IF BINAND(X, 1024) ! Check for SRQ asserted
330END LOOP
340!
350Plot _doneISP "PLOT IS COMPLETE."
360BEEP
370X- SPOLL(Adrs) ! Clear SRQ
380OUTPUT Adrs; "SQM 0" . Reset mask to default
390!
400END
Remote Operation
Bus Messages
100!
110! Controller responds to plot completion using interrupts
120! and the instrument's 'Ready' bit
130!
140Adrs-711 ' HP 3577A address
150Plotter-705 ! plotter address
160Done_bit-16 ! 'Ready'-16
1708
180OUTPUT Adrs; "SQM" ;Done_bit ! Unmask Ready bit
190!
200OUTPUT Adrs; "PLA" 1 Get ready to plot. Plot
210! ! won't start until the HP 3577A
220! ' 1s addressed to talk
230REPEAT
240X- SPOLL(Adrs) ! SPOLL to get rid of previous Ready
250UNTIL NOT BINAND(X.Donebit)
260!
270! Next, enable the SRQ interrupt and start the plot.
280!
290ENABLE INTR 7;2 ! Allow Service Request to interrupt
300ON INTR 7 GOTO Plot_done ! Turn interrupt 'ON'
310SEND 7 ;UNL MTA LISTEN Plotter MOD 100 TALK Adrs MOD 100 DATA ! Start
plotting
320!
3301
340DISP "WAITING FOR PLOT COMPLETION-
350LOOP
3601
370! Wait indefinitely for plot completion
380!
390END LOOP
400!
410Plot _doneISP "PLOT IS COMPLETE."
420BEEP
430X-SPOLL(Adrs) ! Clear the interrupt condition
440!
450OUTPUT Adrs; "SQM 0" ! Resets mask to default condition
460!
470END
It does this by direcctly controlling a digital plotter connected to the
HP3577A's HP-IB port located on the rear panel. The plotter (such as the
HP7475A) must accept Hewlett Packard Graphic Language (HP-GL) commands. The
HP3577A must be configured in a Talk Only mode and the plotter must be
configured as a Listen Only device. Refer to SPECIAL FUNCTIONS in the
Reference Section."
If it's HP-GL instead of writing to a plotter, write to a text file.
Here are 2 Examples from the USER Manual which I OCR'd
100!
110! Controller responds to plot completion by polling the bus
120! CONTROL lines (SRQ-1024) pulled by the instrument's EOT
130! bit.
140!
150Adrs-711 ! HP 3577A address
160Plotter-705 ! Plotter address
170Done_bit-l ! End of Transfer bit (BO) - 1
180!
190OUTPUT Adrs; "SQM" ;Done_bit ! Unmask EOT bit
200!
210REPEAT
220X- SPOLL(Adrs) ! SPOLL to clear previous EOT bit
230UNTIL NOT BINAND(X,Done_bit)
240!
250! Next, start the plot.
260!
270SEND 7;UNL MTA LISTEN Adrs MOD 100 DATA "PLA" LISTEN Plotter MOD 100
TALKAdrs MOD 100 DATA
280I
290DISP "WAITING FOR PLOT COMPLETION"
300LOOP
310STATUS 7,7;X 1 Read bus control and data lines
320EXIT IF BINAND(X, 1024) ! Check for SRQ asserted
330END LOOP
340!
350Plot _doneISP "PLOT IS COMPLETE."
360BEEP
370X- SPOLL(Adrs) ! Clear SRQ
380OUTPUT Adrs; "SQM 0" . Reset mask to default
390!
400END
Remote Operation
Bus Messages
100!
110! Controller responds to plot completion using interrupts
120! and the instrument's 'Ready' bit
130!
140Adrs-711 ' HP 3577A address
150Plotter-705 ! plotter address
160Done_bit-16 ! 'Ready'-16
1708
180OUTPUT Adrs; "SQM" ;Done_bit ! Unmask Ready bit
190!
200OUTPUT Adrs; "PLA" 1 Get ready to plot. Plot
210! ! won't start until the HP 3577A
220! ' 1s addressed to talk
230REPEAT
240X- SPOLL(Adrs) ! SPOLL to get rid of previous Ready
250UNTIL NOT BINAND(X.Donebit)
260!
270! Next, enable the SRQ interrupt and start the plot.
280!
290ENABLE INTR 7;2 ! Allow Service Request to interrupt
300ON INTR 7 GOTO Plot_done ! Turn interrupt 'ON'
310SEND 7 ;UNL MTA LISTEN Plotter MOD 100 TALK Adrs MOD 100 DATA ! Start
plotting
320!
3301
340DISP "WAITING FOR PLOT COMPLETION-
350LOOP
3601
370! Wait indefinitely for plot completion
380!
390END LOOP
400!
410Plot _doneISP "PLOT IS COMPLETE."
420BEEP
430X-SPOLL(Adrs) ! Clear the interrupt condition
440!
450OUTPUT Adrs; "SQM 0" ! Resets mask to default condition
460!
470END