Navigation:  Editor > Introduction >


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.


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.
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.


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

Default Line Thickness: Enter the default plot line thickness.


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.

Scripting Interface

20-sim uses the XMLRPC 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). The defaults setting are shown below.



The Scripting Interface.


Communication can be done by:

HTTP: XMLRPC protocol.
TCP: Optimized for performance binary communication protocol.
Serial: Serial communication using the RS232 port of your computer.


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.