| Prev | Next | Start of Chapter | End of Chapter | Contents | Index | (11 out of 14)

Running Your Application

Once you have created a schematic diagram, you will run the diagram to train and use neural networks. To run a diagram, you must do the following:

You also have the option of toggling animation on or off.

You load your application by using the G2 Load KB menu choice. You run your application by using the NOL Controls menu.

Loading Your Application

Once you have developed an application and renamed the top-level module, you load the KB associated with your top-level module to load your application. NOL automatically loads the KB files required to run the product.

To load a NOL application:

  1. Select Main Menu > Load KB.

  2. Enter the complete pathname of the knowledge base you want to load, including double quotes.


    Tip: If you do not know the pathname of the file you want to load, enter the name of a directory and press Return, to display a listing of the contents of the directory. Select a subdirectory or filename from the list that appears and press Return again until you have located the desired file.
    For example, the pathname might look something like this for a UNIX workstation:

    This loads the top-level module that you renamed, which requires all the modules associated with NOL. G2 reports its progress and displays a message in the Operator Logbook when each module is finished loading.

  3. Select Main Menu > Start.

    This starts G2 Guide, which is a required NOL module, loads all the NOL menus, and displays the top-level menu.

Restoring a Snapshot

You can also load your application from a snapshot file.

To restore a snapshot file:

  1. Select Main Menu > Load KB, and specify a snapshot file.

  2. To start running the application immediately when it is loaded, click the option warmboot afterwards.

For example, here is the Load KB workspace with the warmboot option selected:


If you do not include the option warmboot afterwards, G2 loads in the snapshot as if it were a regular knowledge base and does not run it from where it left off.

Starting and Stopping Data From Flowing

When you are ready to introduce data into your application, you select Enable Data Input from the Controls menu. To enable data input means to start:

By default, NOL puts a check mark next to Enable Data Input in the Controls menu indicating that data input is enabled.

When a diagram is running, you might want to stop it from running by disabling data input, which prevents data from flowing through blocks onto their output paths. You disable data input when you do not want monitoring to occur.

To disable data input when a diagram is running:

To start the diagram running when it is disabled:

Even when data input is disabled, you can manually evaluate portions of your diagram by using the evaluate or override menu choices on blocks in the diagram. You can also select a data source for any individual entry point, external sensor, or internal simulator, or you can disable or enable individual signal generators, clocks, or entry points to control in a fine-grained way the data introduced into your application. For more information, see "Evaluating Blocks" and "Overriding Block Values".

You can also enable and disable evaluation of individual blocks in a diagram and all blocks on a workspace by using the enable evaluation and disable evaluation menu choices on blocks and workspaces. For more information, see "Enabling and Disabling Evaluation".

Toggling Animation

By default, NOL animates all blocks in a diagram when they evaluate to provide you with feedback about your running process. You can turn animation off to enhance the performance of your running application.

By default, NOL puts a check mark next to Animate in the Controls menu indicating that animation is enabled.

To stop your diagram from animating when it is running:

The check mark next to the Animate menu choice disappears and the diagram stops animating.

To animate your diagram when it is running:

The Animate menu choice now has a check mark and the diagram animates.

For information on setting the animation delay, see "Setting the Animation Delay".

| Prev | Next | Start of Chapter | End of Chapter | Contents | Index | (11 out of 14)

Copyright © 1996, Gensym Corporation, Inc.