Chapter 28. Tips and Tricks

Table of Contents

28.1. Command-Line Options
28.2. MeVisLabPackageScanner.exe
28.3. Connecting Inventor Engines to ML Modules
28.4. Using SyncFloat to Reduce System Load
28.4.1. Case 1: Two Inventor and One ML Module Connected in a Circle
28.4.2. Case 2: A Macro Module (Including an Inventor Module) and Another Inventor Module Connected in a Circle
28.5. Printing MeVisLab Networks
28.6. Multi-threading in MeVisLab
28.6.1. Multi-threading in the ML
28.6.2. Background Tasks
28.6.3. Modules for Multi-threading
28.7. Set Open Inventor Override Flag (Inventor Modules)

28.1. Command-Line Options

MeVisLab can be started with command-line options.

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

Mevislab [OPTIONS] [networkfile].mlab [networkfile2].mlab ...

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

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

Table 28.1. Command-Line Options

OptionMeaning
Some of these options are not available when using the MeVisLabStarter executable on Windows; if required, use MeVisLab instead.
-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 a very quick restart).
-diagnosisShows a diagnosis console while starting.
-logfile FILENAMESets the logfile. Overwrites any logfile from the .prefs file and the registry.
-userscript FILENAME [arg1 arg2....]Runs the given user script (see Section 4.8, “User Scripts”). Instead of the filename, the name of the Action can also be given.
-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 opening the application's window afterward (requires a license with 'cmdline' feature).
-runappbatch APPNAME arg1 arg2....Like -runapp, but does not open the application window and exits after the execution of runApplicationCommand in conjunction with the -noide option.
-appname APPNAMESpecifies the application name that is used when accessing registry keys and settings.
-showfullscreenShows the application's window fullscreen.
-showmaximizedShows the application's window maximized.
-helpShows all available command line options.
-nosplashDoes not show MeVisLab's splash screen.
-nowelcomeDoes not show MeVisLab's 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).
-noninteractivePrints error messages instead of showing error dialogs.
-hide-diagnostic-mevislab-messagesPrevents MeVisLab from printing diagnostic messages like “Loading package MeVisLab/IDE (Installed) from ...”.
-show-diagnostic-mevislab-messagesTells MeVisLab to print diagnostic messages like “Loading package MeVisLab/IDE (Installed) from ...”.
-disable-logging-timestampPrevents MeVisLab from printing the timestamp when logging output.
-enable-logging-timestampTells MeVisLab to print the timestamp when logging output.
-exec EXECUTABLE arg1 arg2... ---

Runs the given executable with the given arguments on startup of MeVisLab.

The --- delimiter tells MeVisLab that the arguments end here and that the rest of the commandline are normal MeVisLab options. The executables are terminated again when MeVisLab is exited.

-v/-version/--versionPrints the version of MeVisLab.