MoMo and the GL-toolbox store some preferences permanently: names of
computer and user, path names of measurement and norm data, styles for the
graphical user interface and a list of recently processed sessions. The first
time a function needs values of preferences, a dialog appears to allow
definitions. The settings are saved to a folder inside Matlab's application data
path, therefore the preferences depend on the computer, user and Matlab version.
Determined this folder with
The files found there can be deleted on problems. They are recreated
automatically asking the user for the wanted settings.
Additional help for the management of local variables:
manages default values for the
preferences. The variables and their values can be adjusted to the lab
This opens the file "<MFiles>\Path_local.init"
for editing. E.g. the network path to the Vicon data folder can be defined here
and the users get a valid default value in the dialog of
Nevertheless, all functions of MoMo using preferences can handle missing or
invalid values, e.g. not existing path names. Therefore editing the defaults is
You can use
for your own programs also, see there for
MoMo stores some preferences permanently for future Matlab sessions.
These preferences can be controlled by the dialog opend by
momo prefs. The different single categories are mentioned below to
be complete here (see 3.4 to 3.8), but for daily use it is enough to know
momo prefs as gateway.
After installing a new MoMo version, this dialog is opened automatically and it
is enough to run it once.
- Auto config: This starts the auto configuration of the
functions in the Expert section. If the admin has defined
valid values for Default_local, this is enough for a complete
configuration of a new client computer or user. otherwise some dialogs appear to
define the needed values.
- Machine: Name of computer, location and operating
- MoMo: Paths needed by MoMo
- GhostScript: Absolute file name of GhostScript
- Database folder: Base folder for exported ASCII files
- Reset MoMo: All currently stored links and paths are
reset, e.g. the user-color and research model function pointers, the database
folder, connections between the GUI and the subfunctions. This button is
equivalent to restarting Matlab.
For MoMo the command
clear all would be ok also, but other
toolboxes might fail then.
- Limit cache: This button limits the disk space occupied
by locally store trial cache files to 500MB. Call this once a month.
- The color scheme and font size of dialogs can be chosen here. It is defined
for a user and a specific computer.
More help for GUI styles:
Machine_local is responsible for the
identification of the computer, the user and the operating system. It is
started automatically, e.g. from
- Host: Name of the computer.
- Location: Name of the lab.
- User: Name of the user - this is taken from the
operating system and cannot be edited.
- OS: Operating system - cannot be edited.
- OSType: Type of the operating system - this allows MoMo
to work with future operating system, if they are compatible with a known type,
e.g. Windows Vista can be treated as Windows XP. If the OS is recognized, you
cannot choose a deviating value here.
Open dialog manually:
Get all variables:
Get specific variable, e.g. Matlab's release number:
manages machine depending paths to allow MoMo
working in network environments. Three paths are defined permanently for future
Matlab sessions: MoMoData
The folder MoMoData contains subfolders for norm data,
description pictures, session sets and bug reports. Expert users can modify
these paths in the "Temporary" section, e.g. to test the creation of
norm data without the danger of overwriting original data for daily routine.
A check box must be enabled and reminds the user, that the changes are reset
Not existing folders are marked by a red background. Although MoMo tries to
work in spite of problems with missing folders, a successful run of MoMo cannot
Settings are saved for future Matlab sessions.
- MoMoData: The base folder, where MoMo saves and loads
norm data, session set definitions, description pictures, bug reports, logs and
the documentations. Use the open-folder button to choose a new folder.
- MotionData: The paths containing the current
measurement data folders. This path is needed for the definitions of
- MotionArchive: Vicon-Workstation allows to store
processed sessions in an extra archive folder. If this is not used in your lab,
set this equal to MotionData.
- WorkPath: New
This is the standard path for exported files (PDFs, picture files, tables, but
not the database export). This is new in MoMo R5.0.10 and supported only by a few
functions yet. Creating all files in the session folder pollutes the measurement
data. Some logical ideas for the WorkPath are the local
and personal TEMP folder, "<MoMoData>/Results" or a subfolder
named as the user, a study or a date.
- Default values for these fields are defined in
Settings are cleared automatically.
- For "experts" only, e.g. for test environments.
- The checkbox must be enabled at first to remind the user, that these changes
are removed automatically, e.g. by
clear all, or
MoMo_local $clear, or restarting the Matlab session.
- Temporary modification of variables can be applied manually also without
MoMo_local('$set', NameOfVariable, Value).
- Default values for the Temporary: section are defined
The managed variables can be obtained e.g. with:
MoMo_local('WorkPath') or as struct with all variables:
stores a pointer to the
executable of GhostScript
, which is used for the
creation of PDF files. It is important to choose the command line program
"gswin32c.exe" with the trailing "c" in the name.
Default values: none - perhaps:
Choose the executable:
MoMo exports trials and averaged sessions in ASCII format to the folder:
"<Base>\<ExaminationDATE:YYYYMMDD>\<ID>\". The path
is created by the function
moDBFolder, which uses the <Base>
folder defined in
dbPreferences as default. For testing you can
change the export folder temporarily in
works as fallback)
Choose a folder:
Get current folder:
Set folder temporarily:
moDBFolder('$set', <PathName>, 'temporary')
Reset temporary changes:
The dialog for editing the examination
can show popup-menus for the fields
. The user can
toggle with a right-click between the appearance of popup-menus and edit
fields for free input. The values of the popup menus can be adjusted in a
The predefined names might accelerate the filling of the dialog.
MoMo calls the functions
warnings and errors. These functions use
XBeep to signal
problems. The sound can be disabled for the current sessions: