Technical data
Hardcopy Commands 17
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference 331
:HARDcopy:DPRinter
Command :HARDcopy:DPRinter {<printer_number> | <printer_string>}
The :HARDcopy:DPRinter command selects the default printer to be used.
<printer
_number>
An integer representing the attached printer. This number corresponds to
the number returned with each printer name by the :HARDcopy:PRINters?
query.
<printer _string> A string of alphanumeric characters representing the attached printer.
The :HARDcopy:DPRinter command specifies a number or string for the
printer attached to the oscilloscope. The printer string must exactly match
the character strings in the File- >Print Setup dialog boxes, or the strings
returned by the :HARDcopy:PRINters? query.
Examples This example sets the default printer to the second installed printer
returned by the :HARDcopy:PRINters? query.
myScope.WriteString ":HARDCOPY:DPRINTER 2"
This example sets the default printer to the installed printer with the
name "HP Laser".
myScope.WriteString ":HARDCOPY:DPRINTER ""HP Laser"""
Query :HARDcopy:DPRinter?
The :HARDcopy:DPRinter? query returns the current printer number and
string.
Returned Format
[:HARDcopy:DPRinter?] {<printer_number>,<printer_string>,DEFAULT}<NL>
Or, if there is no default printer (no printers are installed), only a <NL> is
returned.
Example This example places the current setting for the hard copy printer in the
string variable, strSetting, then prints the contents of the variable to the
computer's screen.
Dim strSetting As String ' Dimension variable.
myScope.WriteString ":HARDCOPY:DPRinter?"
strSetting = myScope.ReadString
Debug.Print strSetting
NOTE
It takes several seconds to change the default printer. Any programs that try to set the
default printer must wait (10 seconds is a safe amount of time) for the change to complete
before sending other commands. Otherwise, the oscilloscope will become unresponsive.