12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

continued line, appropriate for saving MCA data in manageable length lines.New versions (since May 1, 1995) of the C-PLOT scans.4 user function interpretthe continued lines correctly for MCA data. The optional argument fmt2 is astring that <strong>spec</strong>ifies an alternate printf()-style format for the values. Only e , gand f formats are recognized. For example, "%15.8f" uses fixed-point formatwith eight digits after the decimal point and a fifteen-character-wide field. Thedefault output format is "%g" . See printf() in a C manual for more information.Note that in the default installation, the internal data arrays use singleprecisionfloating values, which contain only about 8 decimal digits of significance.plot_move(x, y [, string [, color ]]) — Moves the current position to column xand row y ,where column 0, row 0 is the upper left corner of the screen. If thethird argument string is present, it is written as a label at the given position.If using color high-resolution graphics, the fourth argument, if present, is thecolor to use to draw the label. The background color for the entire label will bethe background color at the starting position. If graphics mode is not on,plot_move() works just as tty_move() .Returns true.plot_range(xmin, xmax, ymin, ymax) — Sets the ranges of the internally generatedplots. If any of the arguments is the string "auto" ,the corresponding rangelimit is determined automatically from the data at the time the plot is drawn.If any of the arguments is the string "extend" ,the corresponding range limitis only changed if the current data decrease the minimum or increase the maximum.Returns true.The Data-Pipe Facility<strong>spec</strong>’s data_pipe() function allows integration of external code with <strong>spec</strong>. With thedata-pipe facility, <strong>spec</strong> sends information to the external program, allows the externalprogram to execute for a time, and then receives information back from the externalprogram. The information can be in the form of a string or a number, and canalso include the contents of a <strong>spec</strong> data group or data array. The handshaking anddata transfer between <strong>spec</strong> and the data-pipe program is done in an overhead moduleincluded in the <strong>spec</strong> distribution that is linked with the external code.From <strong>spec</strong>, access to the data-pipe facility is through the data_pipe() functioncalled from the user level. Usage is as follows.data_pipe("?") —process id.Lists the currently running data-pipe processes with name anddata_pipe(program, "kill") — Kills the process associated with program .INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION REFERENCE MANUAL 113

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!