Commands Listed in Alphabetical Order
Arguments
<file p ath> is a
quoted string that defines the file name and path. If the file
path is within the current working directory, you need only specify the file name.
<data> can be e
ither DEFINITE LENGTH or INDEFINITE LENGTH
ARBITRARY BLOCK PROGRAM DATA encoding as described in IEEE 488.2.
Examples
FILESYSTEM:WRITEFILE "C:\SomeNewFile.txt",#221 1.23 2.54 8.22
-1.22<EOI>
creates a file named “SomeNewFile.txt” on the root of the C drive,
containing the string of 21 characters “ 1.23 2.54 8.22 -1.22”. This is an example
of using the definite length arbitrary block.
FILESYSTEM:WRITEFILE "C:\SomeNewFile.txt" ,#0 This is a
test<NL+EOI>
creates a file named “SomeNewFile.txt” on the root of the C
drive, containing the string “This is a test.” This is an example of using the
indefinite length arbitrary block. The newline character (0x0a) is required.
FILESYSTEM:WRITEFILE "C:\SomeNewFile.txt",#221 1.23 2.54 8.22
-1.22<NL+EOI>
creates a file named “SomeNewFile.txt” on the root of the C
drive, containing the string of 21 characters “ 1.23 2.54 8.22 -1.22”. Because the
data argument is indefinite format arbitrary block program data, it may contain
any 8-bit values, including newline characters (hexadecimal 0a). The fact that
newline characters are allowed makes this command deviate from the stricte
st
interpretation of t he IEEE488.2 specification.
HARDCopy
This command sends a copy of the screen display to the port specified by
HARDCopy:PORT. This command is equivalent to pressing the PRINT button
on the front panel. When printing to a file, the file format is Windows Bitmap
Image (BMP).
The HARDCopy query returns the port and fi le path.
Group
Hardcopy
Syntax
HARDCopy STARt
HARDCopy?
Related Commands
*WAI, *CLS
A
rguments
STARt initiates a screen copy to a file or the default system printer, as specified
by the :HARDCopy:PORT selection. The default system printer is set within the
Windows operating system. If you need information about how to set the default
system printer, refer to Microsoft Windows online help.
DPO7000, DPO70000/B and DSA7000/B Series Programmer Manual 2-225