General Properties

Navigation:  Editor > Introduction >

General Properties

Previous pageReturn to chapter overviewNext page

The general properties of 20-sim models are shown in the Options dialog.

From the Settings menu choose the Options command.
From the Tools menu choose the Options command.

Editor

Fonts: Enter the default fonts used in graphical models (Editor) and equation models (Equation Editor).
Syntax Highlighting Threshold: Select the number of characters that should be submitted for color syntax highlighting. If this number is too large, the editor may become very slow.
Undo Buffer Memory Size: Increase the amount of memory used for the undo buffer if you want to store more undo actions.
Submodel Colors: Check this option to turn Gradient Fill on. This option will apply a slight vertical gradient to all blocks with a background color.

Plots

You can choose the default settings for a simulation plot in this tab.

Default Line Thickness: Enter the default plot line thickness.

Folders

You can choose the location of libraries and files in the Folders tab.

Library Folders: Enter the library paths and corresponding library names here. The libraries are shown in the Library tab.
C-code Folders: C-code can be generated for various targets. For each target a file targets.ini defines how the C-code should be generated. You can enter the locations of ini-files here.
Matlab-Code folders: 20-sim models can be exported to Matlab. Similar to C-code generation, a file targets.ini defines how the code should be generated. You can enter the locations of ini-files here.
Model Template Folders: You can enter the location of model templates.
DLL Search Folders: If a 20-sim model is using a DLL-function that is stored on a different location from the model itself, you can enter the location here.

Scripting Server

20-sim uses the XML-RPC protocol to communicate with external software and run scripts. By default, 20-sim will only accept scripting connections from your local computer (Localhost only option is enabled by default). In most cases the default settings should be fine. However, for each of these protocols, settings may be changed. Ask your system administrator for details.

Scripting Client

You can configure specific settings for scripting with Matlab and Octave.

 

Matlab Session Type

20-sim can communicated with MATLAB through scripts and dedicated functions (tomatlab, domatlab, frommatlab). The MATLAB session type determines how MATLAB is started as an automation server:

Shared session: A shared session will open one running version of MATLAB (minimized window), that can be shared with multiple running versions of 20-sim.
Shared desktop session: A shared desktop session will open one running version of MATLAB (full desktop session), that can be shared with multiple running versions of 20-sim.
Dedicated session: A dedicated session will open a new running version of MATLAB for every running versions of 20-sim.

Remark: Note that although the shared desktop session will open MATLAB in desktop mode, it will not be able to use an existing Matlab session started by the user. If you want 20-sim to connect to your existing running MATLAB session, enable the MATLAB Automation Server using the following MATLAB call:
 
enableservice('AutomationServer',true)

 

Octave Folder

Enter or select the path where Octave is installed.