Hardcopy Commands
18
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
367
: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
N O T E
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.
Summary of Contents for Infiniium 90000 Q-Series
Page 1: ...s1 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference...
Page 50: ...50 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 2 Setting Up...
Page 274: ...274 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 14 Digital Commands...
Page 292: ...292 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 15 Disk Commands...
Page 318: ...318 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 16 Display Commands...
Page 364: ...364 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 17 Function Commands...
Page 382: ...382 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 19 Histogram Commands...
Page 412: ...412 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 21 Limit Test Commands...
Page 416: ...416 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 22 Lister Commands...
Page 696: ...696 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 25 Measure Commands...
Page 702: ...702 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 26 Pod Commands...
Page 760: ...760 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 29 Self Test Commands...
Page 818: ...818 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 31 System Commands...
Page 830: ...830 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 32 Time Base Commands...
Page 930: ...930 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 33 Trigger Commands...
Page 1018: ...1018 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 37 Error Messages...
Page 1150: ...1150 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 38 Sample Programs...
Page 1186: ...1186 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference Index...