Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The riversystem.commandline.exe provides a mechanism to run existing projects without the Source interface. It is possible to modify or change the behaviour of the project from the command line, by changing the values of global expressions. Results can be returned for recorded items or global expressions within the project.

 riversystem.commandline.exe is included with Source.

...

  • Standalone mode - the project loads and the simulation runs with a single line command:

    Code Block
    RiverSystem.CommandLine -p C:\Temp\ExampleProject.rsproj

    Client/server mode - one command line runs projects. It does anything except for loading a project until a second command line is run in client mode. In this way, multiple runs can be completed with the server loading the project only once. It also enables the server to run on a different machine to the client. The examples provided assume a client/server mode, illustrating the calls made by the client. They could also work in standalone mode. Refer to Advanced configuration options for two options available in this mode.

Retrieving results

...

Info
iconfalse
Note: When working with functions in the command line, ensure that functions are referenced by their full name to avoid errors or run failures. The syntax for referencing a function by its full name is $Folder.Function. For example, use Riversystem.CommandLine.exe -v "$Folder1.Function1=10.

Retrieving results

By default, all recorded items are returned, as configured from within the Source application (Running scenarios). Alternatively, you can specify specific items to record by using a command line argument:

...

  • Using the Function manager directly. Note that to avoid the code from producing an error, reference a function using its full name. The syntax for this is $Folder.Function. As an example, use Riversystem.CommandLine.exe -v "$Folder1.Function1=10;
  • Creating a function and Adding function usages manually; or
  • Using the Calibration Wizard. Refer to Working with metaparameters for more information.

...