Dynamo console

From Dynamo
Jump to: navigation, search

The Dynamo console is a device that substitutes the Matlab command line when you are using an standalone version of Dynamo.

Activating the console

The console can be invoked in a Linux shell that has been activated to work with the standalone version.

Setting the environment

An annoying feature of the standalone version is that starting a console in a fresh shell for the first time can take long time, even minutes. This can be avoided in some systems if you choose sensible value for the environment variable MCR_CACHE_ROOT. "Sensible" can mean a local folder (instead of a remotely located file share), or a location of your file system that is particularly fast.

In any case, it is always convenient to initialize this variable, instead of letting the system choose: export MCR_CACHE_ROOT=<some location>

Starting a console session

In such a shell, you can write to the linux prompt:


and after some more or less long waiting (see above), you will get a console with the prompt:

Dynamo >>

Opening the Dynamo console inside a linux shell with the command dynamo

Command Syntax

This console has almost the same syntax as the Dynamo matlab commands. Most usual commands can be passed without special adaption, for instance the commands that we input in the Matlab prompt as:

>> dtplot myFile.tbl;

reads in the Dynamo console as:

Dynamo >> dtplot myFile.tbl;

Commands that are not registered in the standalone can still be used in the console preceding them with \. For instance, all commands inside packages are not registered.

I.e. the command for Matlab:

>> mbimg.show(rand(64,64));

can be passed to the console through:

Dynamo >> \mbimg.show(rand(64,64));

Special commands

To leave a console type exit. Bear in mind that will loose all variables stored in the workspace. Also: pressing CTRL+C in a console session will not interrupt a Dynamo process running inside the console, but it will stop the console itself (as process running inside the Linux shell!)

Graphical Console

It is possible ( although not avidsed) to create a graphic console independent from a linux shell dynamo x &

In older Dynamo versions compiled against R2016b, the graphic terminal is necessary in order to run any command that produces GUIs or any other graphic output.

A Dynamo graphical console opened with dynamo x