There are three methods to start optiSLang.
Windows Start Menu
On a Windows system, select
or .Command Line with User Interface
You can start optiSLang in a command line with the user interface enabled.
On a Windows system, run the following command:
[installation path
]\optislang [additional options
]
On a Linux system, run the following command:
[installation path
]/optiSLang [additional options
]
Option | Description |
---|---|
Informational Options | |
--help (-h) | Displays an overview of all command line parameters. |
--version (-v) | Displays optiSLang version information. |
--support-info | Displays support information. |
GUI Mode Options | |
--new | Creates a new project. |
--new= | Creates a new project in the provided path. |
--run | Runs the project. |
--purge | Opens a dialog box to define the purge filter, perform a test run and execute the purge functionality. |
--import-project-properties | Imports a project properties file. |
--project-password
| Unlocks password protected projects with the provided password. |
--project-password-file | Unlocks password protected projects with the provided password file. |
Troubleshooting Options | |
--no-doc | Disable built-in documentation system. |
--sw-rendering | Forces software rendering. |
Placeholder Options | |
--placeholder-assign |
Displays the placeholder assignment dialog box. Additional Options:
|
--import-values
| Imports a placeholder values file. |
File Registration Options | |
--file-provider-dialog | Displays the Registered files dialog box. |
Common Server Options | |
--server-password
| Submits the server password. Use when communication with the server requires the request to contain a password entry. |
--write-server-info |
Writes the server information file using the file path specified. If an absolute path is not supplied, it is considered to be relative to the project working directory. For example:
|
--log-server-events | Displays server events in the Message log pane. |
--enable-notifications
|
Subscribe to push notifications sent to the listener. For example:
Available push notifications are:
|
--shutdown-on-finished |
Shut down when execution is finished. |
Local Server Options | |
--enable-local-server
|
Enables local surveillance on a specified server ID. On Windows, use named pipes and on Unix, use local domain sockets. For example:
|
--register-local-listener
|
Registers local listener for specified server ID. For example:
|
--register-multi-local-listeners
|
Registers multiple local listeners for specified server ID. For example:
|
--register-local-heartbeat-listeners
|
Registers local heartbeat listeners for specified server ID. For example:
|
--local-listener-id |
Sets a specific unique ID for the local listener. For example:
|
Remote Server Options | |
--enable-tcp-server |
Enables remote surveillance (plain TCP/IP based), the port indication is optional [5310-5399]. For example:
|
--enable-ssl-server |
Enables remote surveillance (SSL/TLS encrypted TCP/IP), the port indication is optional [5310-5399]. For example:
|
--enable-sv |
Enables remote surveillance (ZeroMQ based), the port indication is optional [5310-5399]. For example:
|
--server-address
|
Sets the remote surveillance server address. If not specified, the server listens on all interfaces. For example:
|
--register-tcp-listener |
Registers the remote listener (plain TCP/IP based) for specified host and port. For example:
|
--register-ssl-listener
|
Registers the remote listener (SSL/TLS encrypted TCP/IP) for specified host and port. For example:
|
--register-multi-tcp-listeners
|
Registers multiple remote listeners (plain TCP/IP based) for specified host and port. For example:
|
--register-multi-ssl-listeners
|
Registers multiple remote listeners (SSL/TLS encrypted TCP/IP) for specified host and port. For example:
|
--register-tcp-heartbeat-listeners
|
Registers remote heartbeat listeners (plain TCP/IP based) for specified host and port. For example:
|
--register-ssl-heartbeat-listeners
|
Registers remote heartbeat listeners (SSL/TLS encrypted TCP/IP) for specified host and port. For example:
|
--tcp-listener-id
|
Sets a specific unique ID for the TCP listener. For example:
|
--ssl-listener-id
|
Sets a specific unique ID for the SSL listener. For example:
|
Remote Discovery Options | |
--enable-sv-discovery |
Enables network discovery for ZeroMQ based remote surveillance. For example:
|
--enable-tcp-discovery |
Enables network discovery for plain TCP/IP based remote surveillance. For example:
|
--enable-ssl-discovery |
Enables network discovery for SSL based remote surveillance. For example:
|
Batch Mode
You can start optiSLang and execute a workflow without opening the user interface. To start batch mode on either Windows or Linux, run the following command:
optislang -b [additional options
]project files
Note: If you use this command to run the optislang.exe file, the program is executed in a separate terminal that closes automatically when finished.
If you run just the optislang -b
part of the command, a list
of all command parameters is displayed.
Option | Description |
---|---|
Informational Options | |
--help (-h) | Displays an overview of all command line parameters. |
--version (-v) | Displays optiSLang version information. |
--support-info | Displays support information. |
Mode of Operation Options | |
--run | Runs the specified projects (default). Note: You can also open and run a project by using
|
--no-run | Does not run the specified projects. |
--check-only | Checks if the specified project can be executed, but do not run it. |
--export-dot | Creates a dotty file (my_project.dot). |
--purge | Purges the project using purge settings specified in the project. |
--purge-default | Purges the project using default purge settings. |
--purge-file | Purges the project using the filter provided by the filter file. |
--export-purge-filter | Exports the project's purge settings to a filter file. |
--encrypt-python-extension | Encrypts the provided Python file as a new .pye file while preserving the original file. When a directory is provided, each Python file found in the directory structure below is encrypted by creating a .pye file accordingly. The .pye files can be used in Python import statements like regular .py file based modules. |
Batch Mode Options | |
--new= | Creates a new project in the provided path. |
--force | Forces projects to be processed, even if they are incomplete (can be used for damaged projects). |
--restore | Restores the project from the last save point (if present). |
--reset | Resets projects before running them. |
--export-project-properties | Exports a project properties file. |
--import-project-properties | Imports a project properties file. |
--output-file | Writes project run results to an output file. |
--dump-project-state | Dumps full project state when execution finished. |
--include-non-scalar-values | Includes non-scalar (result) values in project dump. |
--include-algorithm-info | Includes algorithm information in project dump. |
--save-mode
|
Overrides the save mode of working directory contents. Valid arguments are:
|
--use-project-dir-as-working-dir | Uses directory containing the project file as working directory. |
--project-password
| Unlocks password protected projects with the provided password. |
--project-password-file | Unlocks password protected projects with the provided password file. |
--no-save | Do not save the specified projects after all other actions have been completed. |
Script Options | |
--python (-p)
|
Runs a Python script before processing each project. Scripts running in the Python pane behave identically in batch mode. The batch mode workflow for each project is:
Note:
Example:
This command creates a new project, executes the arsm_ten_bar_truss.py script, and runs the system. |
--script-arg
| Passes an argument to the Python script. |
--script-args " | Passes multiple arguments to the Python script (separated by spaces). |
Placeholder Options | |
--import-values
| Imports a placeholder values file. |
--export-values
| Exports a placeholder values file after assignment. |
--autorelocate | Automatically relocates external file paths (the external file source is optional, the default is the project base directory). |
File Registration Options | |
--file-provider
| Performs an action for all registered files. Valid actions are ReceiveAll and SendAll. |
--file-provider-export
| Exports a file containing definitions for all registered files. |
Postprocessing Options | |
--start-monitoring | Starts optiSLang monitoring. |
--command-script [-s]
| Sets the monitoring command script. |
--monitoring-mode [-m]
|
Sets the monitoring mode. Valid arguments are:
|
--template-file [-t] | Sets the monitoring template file. |
--text-import-settings-file
| Sets the settings file used for importing text files. |
--text-import-interactive | Opens up the Text
Import wizard when using
text-import-settings-file . |
--export-omdb-path
| Directly create an *.omdb file at the provided path. |
--connect-local= |
Connects to the local server at the specified server ID. For example:
|
--connect-tcp |
Connects to a remote server (plain TCP/IP). For example:
|
--connect-ssl |
Connects to a remote server (SSL/TLS encrypted TCP/IP). For example:
|
|
Connects to a remote server (ZeroMQ based). For example:
|
--system-name
| Sets the name of the system to monitor. |
--system-state-hid
| Sets the state ID of the system to monitor. |
Common Server Options | |
--server-password
| Submits the server password. Use when communication with the server requires the request to contain a password entry. |
--write-server-info |
Writes the server information file using the file path specified. If an absolute path is not supplied, it is considered to be relative to the project working directory. For example:
|
--log-server-events | Displays server events in the Message log pane. |
--enable-notifications
|
Subscribe to push notifications sent to the listener. For example:
Available push notifications are:
|
--shutdown-on-finished |
Shut down when execution is finished. |
Local Server Options | |
--enable-local-server
|
Enables local surveillance on a specified server ID. On Windows, use named pipes and on Unix, use local domain sockets. For example:
|
--register-local-listener
|
Registers local listener for specified server ID. For example:
|
--register-multi-local-listeners
|
Registers multiple local listeners for specified server ID. For example:
|
--register-local-heartbeat-listeners
|
Registers local heartbeat listeners for specified server ID. For example:
|
--local-listener-id |
Sets a specific unique ID for the local listener. For example:
|
Remote Server Options | |
--enable-tcp-server |
Enables remote surveillance (plain TCP/IP based), the port indication is optional [5310-5399]. For example:
|
--enable-ssl-server |
Enables remote surveillance (SSL/TLS encrypted TCP/IP), the port indication is optional [5310-5399]. For example:
|
--enable-sv |
Enables remote surveillance (ZeroMQ based), the port indication is optional [5310-5399]. For example:
|
--server-address
|
Sets the remote surveillance server address. If not specified, the server listens on all interfaces. For example:
|
--register-tcp-listener |
Registers the remote listener (plain TCP/IP based) for specified host and port. For example:
|
--register-ssl-listener
|
Registers the remote listener (SSL/TLS encrypted TCP/IP) for specified host and port. For example:
|
--register-multi-tcp-listeners
|
Registers multiple remote listeners (plain TCP/IP based) for specified host and port. For example:
|
--register-multi-ssl-listeners
|
Registers multiple remote listeners (SSL/TLS encrypted TCP/IP) for specified host and port. For example:
|
--register-tcp-heartbeat-listeners
|
Registers remote heartbeat listeners (plain TCP/IP based) for specified host and port. For example:
|
--register-ssl-heartbeat-listeners
|
Registers remote heartbeat listeners (SSL/TLS encrypted TCP/IP) for specified host and port. For example:
|
--tcp-listener-id
|
Sets a specific unique ID for the TCP listener. For example:
|
--ssl-listener-id
|
Sets a specific unique ID for the SSL listener. For example:
|
Remote Discovery Options | |
--enable-sv-discovery |
Enables network discovery for ZeroMQ based remote surveillance. For example:
|
--enable-tcp-discovery |
Enables network discovery for plain TCP/IP based remote surveillance. For example:
|
--enable-ssl-discovery |
Enables network discovery for SSL based remote surveillance. For example:
|
Example Commands
Example 3: Create and Run a New Project then Run the Existing Project
optislang -b --new ~/Documents/projectNew.opf ~/Documents/project.opf
Example 4: Run an Existing Project, Create a New Project, then Run Another Existing Project
optislang -b ~/Documents/project1.opf --new ~/Documents/project2.opf ~/Documents/project3.opf