Chapter 26. Tips and Tricks

Table of Contents

26.1. Command-Line Options
26.2. MeVisLabPackageScanner.exe
26.3. EatDicom.exe
26.4. Connecting Inventor Engines to ML Modules
26.5. Using SyncFloat to Reduce System Load
26.5.1. Case 1: Two Inventor and one ML module connected in a circle
26.5.2. Case 2: A macro module (including an Inventor module) and another Inventor module connected in a circle
26.6. Printing MeVisLab Networks
26.7. Multi-threading in MeVisLab
26.7.1. Multi-Threading in the ML
26.7.2. Background Tasks
26.7.3. Modules for Multi-threading
26.8. Set Open Inventor Override Flag (Inventor Modules)

26.1. Command-Line Options

It is possible to start MeVisLab with command-line options.

Windows: To start MeVisLab from the command line, enter:

MevislabStarter [OPTIONS] [networkfile].mlab [networkfile2].mlab ...

Mac OS X: To start MeVisLab from the command line, execute the MeVisLab binary from within the Contents/MacOS application bundle directory:

MeVisLab.app/Contents/MacOS/MeVisLab [OPTIONS] [networkfile].mlab [networkfile2].mlab

Linux: To start MeVisLab from the command line, enter:

<mevislab installpath>/bin/Mevislab [OPTIONS] [networkfile].mlab [networkfile2].mlab ...

To get a list of all available options, start MeVisLab with the -help option. This will open a window with all commands.

Figure 26.1. Command-Line Options Window in Windows

Command-Line Options Window in Windows

Table 26.1. Command-Line Options

OptionMeaning
-prefs FILELoads an additional .prefs file.
-ignoreprefsIgnores all user prefs files.
-ignoreuserpackagepathIgnores the user package path.
-updateonlyUpdates all required DLLs to run MeVisLab and quits.
-installCreates required symlinks and MLabModules cache file and quits.
-uniqueRuns a unique MeVisLab, does not try to use a running one.
-noideDoes not show the MeVisLab IDE.
-scanScans Modules directories for new files.
-noscanUses existing Modules cache files and does not scan Modules directories for new files.
-quickUses existing Modules cache files and does not check for any file changes (allows very quick restart).
-diagnosisShows a diagnosis console while starting.
-runmacro MACRONAME arg1 arg2....Runs a macro by calling its consoleCommand (requires a license with 'cmdline' feature).
-runapp APPNAME arg1 arg2....Runs a MeVisLab application, passing arguments to its runApplicationCommand and showing the apps window afterwards (requires a license with 'cmdline' feature).
-runappbatch APPNAME arg1 arg2....Like -runapp, but does not start the application window and exists after execution of runApplicationCommand in conjunction with the -noide option.
-showfullscreenShows application fullscreen.
-showmaximizedShows application maximized.
-helpShows all available command line options.
-nosplashDoes not show the MeVisLab splash screen.
-nowelcomeDoes not show the MeVisLab Welcome screen (debugging option).
-singleinstanceOnly allows one MeVisLab instance to be started and passes the files of the command line to another running MeVisLab (debugging option).
-release (Mac OS X only)Starts MeVisLab in release mode.
-debug (Mac OS X only)Starts MeVisLab in debug mode. (To start MeVisLab under Windows in debug mode, launch the executable “MeVisLabStarter_d” by clicking its desktop icon.)