MDO3000 Programmer Manual.pdf - 第363页
Commands Listed in Alphabetical Order Examples HARDCOPY:INKS AVER ON will cause subsequent hard copy output to display the screen on a white background. HARDCopy:LA Y out This command specifies the page orientation for ha…

Commands Listed in Alphabetical Order
NOTE. The Hardc
opy command with no arguments is equivalent to pressing the
“HardCopy” button on the front panel, when the data is sent to the printer. As
there is no front panel equivalent of the HARDCOPY START, you can choose to
save the images to a different location u sing the “SAVE” button.
Examples
HARDCOPY initiates a screen copy to the active printer.
HARDCopy:ACTIVeprinter
This command specifies the currently active printer. When a hard copy operation
is performed, the output will be sent to this printer. One of two methods of
specifying the printer can be used: specifying an index value obtained from
looking at the list of attached printers or by specifying the printer name.
Group
Hard Copy
Syntax
HARDCopy:ACTIVeprinter {<NR1>|<name>}
HARDCopy:ACTIVeprinter?
Arguments
<NR1> is the index of the desired printer as returned from HARDCopy:PRINTer:
LIST?
<name> is the name of the printer as specified in the printer list. This name is case
sensitive and must be entered exactly as shown in the list.
HARDCopy:INKSaver
Changes hard copy output to print traces and graticule on a white background
while retaining waveform color information (except for channel 1, which prints as
dark blue because yellow does not show up well and is difficult to see on a white
background). This option can significantly reduce print time and quantities of ink
required compared with WYSIWYG dark background images.
Group
Hard Copy
Syntax
HARDCopy:INKSaver?
Arguments
ON or <NR1> ≠ 0 sets the ink saver mode on.
OFF or <NR1> = 0 sets the ink saver mode off.
2-332 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual

Commands Listed in Alphabetical Order
Examples
HARDCOPY:INKS
AVER ON
will cause subsequent hard copy output to display the
screen on a white background.
HARDCopy:LAYout
This command specifies the page orientation for hard copy. If you set the layout to
LANdscape, the printer will print hard copies in landscape mode where the long
edge of the screen will print to the long edge of the sheet of paper. If you set the
layout to P
ORTRait, the printer will print hard copies in portrait mode.
This command is not applicable for PictBridge hardcopies.
Group
Hard Copy
Syntax
HARDCopy:LAYout {PORTRait|LANdscape}
HARDCopy:LAYout?
Arguments
PORTRait orients the screen image vertically on the printed page.
LANdscape orients the screen image horizontally on the printed page.
Examples
HARDCOPY:LAYOUT LANDSCAPE sets the hard copy page orientation to Landscape.
HARDCOPY:LAYOUT? might return :HARDCOPY:LAYOUT PORTRAIT indicating
that the hard copy page orientation is set to portrait.
HARDCopy:PREVIEW (No Query Form)
Displays a preview of the current screen contents with the InkSaver palette
applied.
Group
Hard Copy
Syntax
HARDCopy:PREVIEW {ON|OFF|<NR1>}
Arguments
ON or <NR1> ≠ 0 turns preview mode on.
OFF or <NR1> = 0 turns preview mode off.
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-333

Commands Listed in Alphabetical Order
HARDCopy:PRI
NTer:ADD (No Query Form)
This command is used to add a network or email printer to the list of available
printers. Adding a network printer requires 3 arguments, but only one of server
name or serve
r IP address should be specified. An empty string can be used for
blank arguments. Adding an email printer requires only one argument.
Group
Hard Copy
Syntax
HARDCopy:PRINTer:ADD
<name>,<server>,<address>|<emailaddress>
Arguments
Network printers:
<name> is the name of the network printer queue.
<server> is the host name of the print (LPR) server.
<address> is the IP address of the print server.
Specify
ing the printer name and server name or server address adds a network
printer to the list of available printers. All three arguments must be present, but
only one of server name or server IP address should be specified. An empty
string should be used for the second or third argument (server name or server
address) which is not specified. If both are specified and neither is an empty
string, then the server name takes precedence.
Email printers:
<emailaddress> is the internet email address of the printer. Must contain an
@ character.
Specifying only a single argument, the printer email address adds an email printer
to the list of available printers, as does specifying 2 or more arguments where the
first argument contains an @ character. When the first argument contains an @
symbol, the command is interpreted as a request to add an email printer and,
therefore, any additional arguments are ignored.
Examples
Network printer:
To add a networ
ked printer called 'labprn1', hosted from a compatible print server
called 'printhost.example.com':
HARDCopy:PRINTer:ADD "labprn1", "prin thost.example.com",
""
To add a networked printer called 'labprn2', hosted from a print server at IP
address '192.168.0.20':
HARDCopy:PRINTer:ADD "labprn2", "", "192.168.0.20 "
2-334 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual