TDS5000B Online Programmer Guide
-- 3 0 2 --
FILESystem:WRITEFile
Description
This command (no query form) copies the block data from the GPIB
port to a named file.
Group
File System
Related Command
FILESystem:CWD
Syntax
FILESystem:WRITEFile <file path>,<data>
Arguments
H <file path>
This 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
H <data>
This data can be either DEFINITE LENGTH or INDEFINITE
LENGTH ARBITRARY BLOCK PROGRAM DATA encoding as
described in IEEE 488.2.
Example 1
FILESystem:WRITEFile ”C:\SomeNewFile.txt”,#221
1.23 2.54 8.22 -1.22<EOI>
This command 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.
Example 2
FILESystem:WRITEFile ”C:\SomeNewFile.txt”,#0
This is a test<NL+EOI>
This command 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.