Running modules
You can run modules in three ways:
- By running the model that contains the module (by choosing Run from the Run menu). When you run a model, all of its modules automatically run.
- By choosing to run selected modules within the model (by choosing Module Specs from the Run menu, and then selecting the modules you want to run in the Module Specs dialog box). When you run a module as part of the model that contains it, the module uses the model's run specifications (as defined in the Run Specs dialog box).
- If you saved the module as a separate file, by opening the module (.ITMX or .STMX) file and running the module in isolation (for example, in order to test it or use it as a stand-alone model). When you run a module in isolation, the module uses its own run specifications (as defined in the Run Specs dialog box). When you run one or more selected modules (without running the entire model), module inputs are held constant using
the same rules as those used by the Run Selected Sectors option. For more information, see Module Specs dialog box.
Note: A model that contains modules will not run until all inputs in each of its modules have been assigned to entities in the model. If you receive an error message when you try to run the model, check all connections for the modules and make sure that all inputs are assigned and that there are no unused connectors. For more information, see Testing and troubleshooting modules.
The following procedure describes how to run selected modules within a model.
To run one or more modules in a model
-
From the Run menu, choose Module
Specs.
The Module Specs dialog box opens.
-
Select the modules that you want to run:
- To run the entire model, including all modules,
select Run Entire Model.
- To run one or more modules within the model, select
Run Selected Modules, and then
select the check boxes for the modules that you want to run.
Note: Modules whose names are
grayed out cannot run because they are not fully defined (do not have
all entities defined) or have errors.
- To clear your selections so that you can make another choice, click
the Clear All button.
- When you have finished making your selections, click OK.
-
Run the selected modules:
- If you selected Run Entire Model, choose Run from the Run menu.
- If you selected Run Selected Modules, choose Run Module(s) from the Run menu.
See Also