Macro Language: Document Commands

new

Opens a new document.

close

Close the current document window.

open <filename>

Opens the document with the given filename.

save

Save the current document.

saveas <filename>

Save document to a new file.

savepng <filename> [dpi]

Save document as a PNG file. The default resolution is 72 dpi.

savejpg <filename> [dpi]

Save document as JPG file. The default resolution is 72 dpi.

savepdf <filename>

Save document as PDF file.

saveeps <filename>

Save document as EPS file.

printdoc

Print the current document.

import <filename> <mode> [separator] [xcol] [noxcol] [comment] [ignore] [comment sequence] [only number lines] [time format] [comma separator] [period separator]

Import an ASCII file
<mode>: Import mode (0=multicolumn, 1=error values).
[separator]: Defines the field separator for ASCII import.
[xcol]: Defines the X column starting with 1 as the first column.
[noxcol]: If true all columns will be interpreted as Y values and the X values will be generated as sequence number.
[comment]: Overwrites the default comment for the imported buffers.
[ignore]: Lines containing this string will be ignored.
[comment sequence]: Anything in a line behind this sequence will be ignored for import.
[only number lines]: If true import ignores all lines which not begin with a number.
[time format]: custom time format for x column import.
[comma separator]: If true treat comma as field separator
[period separator]: If true treat period as field separator.

binaryimport <filename> <type> <mode> <swap> <columns> [comment]

Performs a binary import of data.
<type>: Defines the data type (0=double (64bit), 1=float (32bit), 2=integer (32 bit), 3=integer (16 bit)).
<mode>: Defines the import mode (0=column mode, 1=block mode).
<swap>: Enables or disables byte order swapping.
<columns>: The number of columns to import.

mysqlimport <host> <db> <user> <password> <port> <sql>

Import data from MySQL database.

perlimport <filename> [name]

This executes a Perl import filter for the given file. Look in the perl import section for detailed information.
If no name is given the inline Perl block will be used. This is a block in your macro starting with a line containing PERL and ending with a line containing PERL. The default timeout for Perl scripts is 10 seconds. After this time the Perl job will be killed to prevent never come back jobs. You can set the timeout individual with the perltimout <sec> macro command.

perlfilter <BUFFER> [name]

This executes a Perl filter for the given buffers. Look in the perl filter section for detailed informations.
If no name is given the inline Perl block will be used. This is a block in your macro starting with a line containing PERL and ending with a line containing PERL. The default timeout for Perl scripts is 10 seconds. After this time the Perl job will be killed to prevent never come back jobs. You can set the timeout individual with the perltimout <sec> macro command

epicsimport <pv1> [pv2]

Import EPICS array PV. If one PV is given, it will be imported as Y values with arbitrary X values. If two PV's are given they will be imported as X and Y values.

epictimeout <sec>

Set a timeout value for EPICS requests (default is 3 Sec).

epicsmaxarray <bytes>

Set EPICS environment variable EPICS_CA_MAX_ARRAY_BYTES (default is 65536).

epicsaddrlist <address list>

Set EPICS environment variable EPICS_CA_ADDR_LIST (default is empty).

epicssetvar <var> <pv>

Set macro variable from EPICS pv.

export <file> <BUFFER>

Export buffers as ASCII file.

subview <width> <height> <x> <y>

Add a subview to the document.

sizeview <width> <height> <x> <y>

Change the size and position of the current subview

changeview <subview number>

Change the current view where 0 ist the main view.

deleteview <subview number | all>

Delete one or all subviews