File Structure

All the resources associated with SIMulation Workbench reside under the /usr/local/ccursim directory. And are pointed to by the main SimWB configuration file

/etc/ccursim.conf

This file defines the global resources such as directory paths and host name needed to run the simulation software. It is an ASCII file in the key=value format.

The file must be placed into the /etc/ directory. This file is only installed on the system during the first time SimWB inst installed, subsequent upgrade will not overwrite any previous version of the file already present on the systems.

Key

Default value

Description

installdir

/usr/local/ccursim

Where the software should be installed.

projectsdir

/usr/local/ccursim/
projects

Root of the simulation software repository.

tdldir

TDL

Directory under projectsdir where the script source programs are stored. Each script program is stored in a directory with the same name as the script program.

rtwdir

RTW

Directory under projectsdir where the RTW source programs are stored. Each RTW program is stored in a directory with the same name as the RTW model.

mdldir

MDL

Directory under projectsdir where the Simulink model files are stored.

rtdbdir

RTDB

Directory under projectsdir where the RTDB files are stored. Each database is stored in a directory with the same name as the RTDB.

usersourcedir

UserSources

Directory under projectsdir where sources for user defined models are stored. Each user program’s source is stored in a directory with the same name as the program.

userexecdir

UserExecs

Directory under projectsdir where the executable files for user defined models are stored. Each user program is stored in a directory with the same name as the program.

testsdir

Tests

Directory under under projectsdir where all test configuration, setup log and data logging files are stored.

guiicondir

/usr/local/ccursim/
gui/icons

Icons files for the legacy GUI.

editorcommand

xterm –e vim

The command used to invoke the local source editor on the platform. Used when the user downloads a source file from the real-time host’s repositories to the editor using the legacy GUI.

guifiledir

/usr/local/ccursim/
gui/files

Support files such as HTML pages for the legacy GUI

groupname

ccursim

The default group name that is created at installation and which is used by the SimWB application.

dataloggerhost

None

Host name where the data logger server is running. The real-time host logging client program will connect to this host name via TCP to send the real-time logging records.

dlnetworkbuffer

1000

Number of network buffers for the data logger. This is a tunable and is used to buffer the data coming from the RT host and avoid potential disk writes latency problems.

The configuration server (cfgsrv) program and all the other processes that it forks to start a test run with the ccursim group id. All directories and files created by the configuration are readable and writable by root and the ccursim group id. Any external process that wants read and write access to any file in the data logger repository must thus be a member of the ccursim group.

As described above, all the directories and files that are created at run time reside under the main projectsdir directory as defined in the /etc/ccursim.conf file. Also some static directories exist directly under the installdir directory (/usr/local/ccursim) such as the I/O and GUI user hooks.