:DISK:FILE:WRITe?

Query Syntax

:DISK:FILE:WRITe? "filename",  <binary_data>

Query Response

{1 | 0}

Description

Sends binary data to Infiniium 2026's file system. The data is sent in the definite-length block data format, which allows any type of device-dependent data to be transmitted over the system interface as a series of 8-bit binary data bytes.

The :DISK:FILE:WRITe? query returns a boolean value. A '1' is returned if the file write operation succeeds and a '0' is returned if the operation fails for any reason.

To read binary data from a file on Infiniium 2026's file system, use the :DISK:FILE:READ? command. To return the size of a file that is on Infiniium 2026's file system, use the :DISK:FILE:SIZE? query. To read a text file, use the :DISK:FILE:ASCii:READ? command.

SCPI commands that perform general file I/O operations are limited to Standard Infiniium File Types and Standard Infiniium Folders.