|
LISTName:
There are a number of special keywords that are recognized for the LIST command. Specifically,
L This lists the last 20 Dataplot commands. The SET LIST LINES command can be used to specify how many commands are listed (up to a maximum of 200). This command is typically used before a REPEAT or SAVE command to selectively re-execute recent Dataplot commands. Enter HELP REPEAT or HELP SAVE for details.
where <file name> is the name of a file. This lists the entire contents of the specified file. The SET LIST LINES command can be used to specify the number of lines to print at a time (to print one screen at a time).
where <file name> is the file to list; <start> specifies the first line to list; <inc> specifies the increment between lines (this is almost always 1); and <stop> specifies the last row to list. This syntax is useful for listing out selected parts of long files.
where <keyword> is one of DICTIONARY, DIRECTORY, MASTER, DEFINITIONS, DATASETS, PROGRAMS, MACROS, DESIGNS, DISTRIBU, COMMANDS, SYNTAX, FUNCTIONS, CONCLUSIONS, CLIPBOARD, FUNCTION BLOCK, STATISTIC BLOCK, LOOP LINES, or COMMAND LINE ARGUMENTS.
where <file name> is the name of a file. This syntax displays the LIST output in a separate window. See the Note section below for details.
where <file name> is the name of a file. This syntax displays the first 10 lines of the file. To modify the number of lines LIST HEAD prints, enter
where
where <file name> is the name of a file. This syntax displays the last 10 lines of the file. To modify the number of lines LIST TAIL prints, enter
where <value> is a positive integer.
where <file name> is the name of a spreadsheet file. This syntax will display a spreadsheet file (not necessarily limited to Excel spreadsheets). See the Note section below for further information.
where <file name> is the name of a document file. This syntax will display a document file (not necessarily limited to Word files). See the Note section below for further information.
where <file name> is the name of a presentation file. This syntax will display a presentation file (not necessarily limited to Power Point files). See the Note section below for further information.
LIST PROG.PLOTLAB LIST L LIST PLOT.DAT FOR I = 1 1 50 LIST DATASETS LIST CLIPBOARD
Dataplot will first try to open the file as given. If it cannot find the file, it will then try to match the file with all upper case characters and then with all lower case characters. If it still cannot match the file name, it will search the Dataplot directories for the file. Currently, the maximum line length for the LIST command is 255 characters.
The CAT command does not have the limits on the number of characters in the file name (the maximum number of characters on a command line is currently 255) and the limit on the number of characters on a single line. However, the CAT command does not support the keywords in Syntax 4 and does not automatically search the Dataplot directories.
When this switch is set to ON, Dataplot will display the contents of the output from the LIST command in a separate window. Under Windows, the following command is issued to the operating system to display the dpst1f.dat file
Under Linux/Unix/MacOS, the following command is issued to the operating system to display the dpst1f.dat file
You can specify a different viewer by entering the command
For example, you could enter the following
. Use Notepad++ for Windows
. Use Wordpad for Windows If <name> contains spaces or hypens, it should be enclosed in double quotes. For Linux/Unix/MacOS, you may need to specify something other than gnome-terminal to launch the new window. We have tested the following
SET LIST LAUNCHER kconsole -e For Linux, the appropriate choice may depend on which desktops and applications are installed on your system. The gnome-terminal should be available if you run the gnome desktop and kconsole should be available if you run the KDE desktop. Note that xterm is no longer installed by default on some newer Linux installations. Control is returned to the Dataplot window after the operating system command is entered (i.e., you can leave the LIST window open while you enter new Dataplot commands). To reset the default of LIST output appearing in the Dataplot window, enter
For a single LIST command, you can enter
LIST WORD <file-name> LIST POWER POINT <file-name> These commands are used to view various types of office files such as spreadsheets and document files. Although we use EXCEL, WORD and POWER POINT in the command names, you are not limited to Microsoft Office files. By default, under Windows these commands will issue the following command
By default, under Linux/Unix these commands will issue the following command
By default, under MacOS these commands will issue the following command
These defaults will use the file name extension to determine the application to view the file. This depends on an appropriate file association being defined on your system for a given file extension. There may be cases where you do not want to use the default application. For example, the default applications may be set by a system administrator and you prefer to use a different application. Also, you may have a file with an extension for which no file association has been created. Dataplot allows you to define a specific application to use for these types of files. To specify specific applications to use, you can enter the following commands
SET WORD VIEWER "<application-name>" SET POWER POINT VIEWER "<application-name>" Dataplot does no error checking to see if <application-name> is in fact installed on your system. For example, to explicitly use libreoffice applications under Linux, you could enter
SET WORD VIEWER "libreoffice --writer" SET POWER POINT VIEWER "libreoffice --impress" A few comments on this.
is equivalent to entering
Dataplot will now check the extension on the file name. Specifically
1987/01: Support for DIRECTORY keyword 1988/08: Support for DICTIONARY keyword 1989/07: Support list output one page at a time 1993/11: Support for DATASETS, DESIGNS, DISTRIBUTIONS, COMMANDS, SYNTAX, FUNCTIONS, PROGRAMS, and MACROS keywords 2014/11: Support for CLIPBOARD keyword 2015/09: Support for FUNCTION BLOCK keyword 2016/08: Support for STATISTIC BLOCK keyword 2016/10: Support for LIST COMMAND LINE ARGUMENTS keyword 2017/07: Support for LOOP LINES keyword 2018/06: Increase maximum line length from 80 to 255 2019/11: Added LIST HEAD syntax 2019/11: Added LIST TAIL syntax 2019/11: Added LIST NEW WINDOW syntax 2019/12: Added LIST EXCEL syntax 2019/12: Added LIST WORD syntax 2019/12: Added LIST POWER POINT syntax SKIP 25 READ BERGER1.DAT Y X . SET WRITE DECIMALS 5 CAPTURE FIT.OUT FIT Y X END OF CAPTURE . LIST FIT.OUT
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 12/19/2019 |