spec

Software for Diffraction

2.4.6.1. - Binary Input/Output



The facility for binary file input and output allows users and sites to create arbitrary binary file formats for writing and reading spec data arrays. C source code for a number of formats is included in the spec distribution.


fmt_read(file, fmt, arr [, header [, flags ]])


fmt_write(file, fmt, arr [, header [, flags ]])


fmt_close(file, fmt)


In these functions file is the name of the data file, fmt selects which format to use and arr is the data array. The optional header argument is an associative array that may containing identifying information to be saved with the binary values in the data array. The optional flags argument is reserved for future enhancements.

data_pipe("?")
Lists the currently running data-pipe processes with name and process id.

data_pipe(program, "kill")
Kills the process associated with program.