NOL can report errors in the Error Queue and/or to a file. By default, NOL
displays errors in the Error Queue only and brings the Error Queue to the foreground whenever an error occurs.
To configure how NOL reports errors:
Select the Preferences > Settings > Errors menu choice to display the Error
Settings panel:
|
NOL lets you control how it initializes and verifies your application when it starts
up. You can also specify a custom procedure that NOL calls when it starts up.
To customize how NOL starts up:
|
To disable animation on startup:
Specify Animation at Startup as no.
To enable data input on startup:
Specify Enable Data Input at Startup as yes.
To run your own procedure when you start G2:
Set Post Global Initializer to the name of the procedure in the Startup Settings.
To run your own procedure after resetting:
Set Post Global Resetter to the name of the procedure in the Startup Settings.
You can configure various aspects of the NOL environment, including:
To configure the NOL environment:
|
To prevent blocks from evaluating when data expires:
Set Propagate Expiration Events to no in the Environment Settings panel.
To process entry point data in a diagram, using a different sweep interval:
Set Sweep Interval (seconds) in the Environment Settings panel to a number
of seconds.
Setting the Animation Delay
You can set the delay for animating blocks and paths. The delay specifies the
length of time that a block remains highlighted while it is executing. By default,
blocks and paths animate for .01 seconds. Specifying a larger number for the
animation delay allows you to observe the blocks as the evaluate, however it will
also slow down processing.
To set the animation delay:
Set Animation Delay (seconds) in the Environment Settings panel to a
number of seconds.
You can set the resolution of the snap grid in pixels.
To set the resolution of the snap grid:
Set Snap Grid Resolution (pixels) in the Environment Settings panel to a
number of pixels.
allow other
processing statement in a procedure. You can customize the number of blocks
that can process.
To set the number of blocks that can process when allowing other processing:
Set Blocks Between Allow-other-processing on the Environment Settings
panel to a number of blocks.
To configure the Find Block... menu choice key binding:
Set Browser Key Binding on the Environment Settings panel to any allowable
key binding, and restart G2.
To set the maximum timeout for data seeking:
Set Maximum Data Seeking Timeout on the Environment Settings panel to a
number of seconds.
Snapshots let you save the state of a running application, as described in "Taking a Snapshot".
You can configure NOL to save snapshot files automatically. You can also
configure whether NOL saves the contents of the current window or not, or
whether it saves the contents of some other window.
To configure how NOL saves snapshot files:
Select the Preferences > Settings > Snapshots menu choice to display the
Snapshot Settings panel:
|
To specify the default snapshot file:
Enter a pathname in the Snapshot Pathname in the Snapshot Settings panel.
To specify the window whose contents are to be saved:
Set Snapshot Window to the name of a g2-window object on the network,
whose window contents are to be saved, or none to save only the KB
knowledge and not the window contents.
local.
To specify the priority at which NOL saves a snapshot:
Set the attribute Snapshot Priority to an integer that is the priority.
6, the same priority as the NOL scheduler. Give it a higher priority
if you want the snapshot to happen quicker. Give it a lower priority if you do not
want the snapshot to slow down your application as much.
|
To avoid reporting progress when saving snapshot files:
Set Display Snapshot Progress to no in the Snapshot Settings panel.
To save snapshot files automatically:
yes in the Snapshot Settings panel.
For example, if Auto Snapshot is
yes and Auto Snapshot Period is 30 minutes,
NOL saves a snapshot every half hour.
NOL saves the snapshot to the file specified in Snapshot Pathname, as described in "Specifying the Default Snapshot File". The default snapshot file is
"nol-snapshot.kb".
| Prev
| Next | Start of Chapter | End of Chapter | Contents | Index | (4 out of 5)
Copyright © 1996, Gensym Corporation, Inc.