USING THE COMBISCOPE INSTRUMENTS

3 - 67

 

DSO

read

 

 

 

 

 

response

 

send

 

 

 

 

1)

 

data

 

plot/print

 

 

 

 

 

 

 

 

data

 

 

 

 

 

 

 

 

 

 

2)

 

3)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

data

 

 

 

 

 

 

 

buffer

 

 

 

send

 

 

 

 

 

HCOPy:DATA?

 

 

 

 

 

 

 

CONTROLLER

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PLOTTER

PRINTER

ST7219

1)Send the query HCOPy:DATA? via the GPIB.

2)Read the block response data via the GPIB.

3)Send the print/plot data part to the printer/plotter.

Figure 3.22 Hardcopy of screen on printer/plotter

PROGRAM EXAMPLE:

Select one of the supported GPIB plotters, set its address at 22 and connect the plotter via IEEE to the controller. Create a screen picture on the DSO that you want to plot and run the following program.

DIM addr(2)

 

Dimensions address array.

DIM response AS

STRING * 15000

Dimensions response string.

CALL IBTMO(0, 13)

Timeout at 10 seconds.

CALL Send(0, 8,

"HCOPy:DEVice PM8277", 1)

Selects the PM8277 plotter

CALL Send(0, 8,

"HCOPY:DATA?", 1)

Requests for hardcopy data.

CALL Receive(0,

8, response$, 256)

Reads the hardcopy data.

length = IBCNT%

 

IBCNT = number of read bytes

PRINT "Number of hardcopy bytes ="; length *****

The first 2 characters of the response block data are #0 (preamble for indefinite length). ’They must not be sent to the plotter; so, send characters 3 until 3+length-2.

*****

No End detection

CALL Send(0, 22, MID$(response$, 3, length - 2), 0)

CALL Send(0, 22, "", 1)

End of data block

Page 86
Image 86
Fluke PM-3390B, PM-3380B, PM-3370B, PM-3394B, PM-3384B user manual Hardcopy of screen on printer/plotter