MotionSolve uses environment variables to locate various files. When you invoke MotionSolve from MotionView or via the Run script, these environment variables are set automatically - you do not need to set them manually. However, if you launch one of the MotionSolve related executables (for example, mbd_d.exe, mspre.exe, msolve.exe, mpost.exe) at the command prompt, you need to first specify one or more of these environment variables.
Note: Quotes around the values of the variables should not be used in most cases.
Option |
Description |
MATLABROOT |
Sets the root directory for a MATLAB installation, which is required for batch co-simulation runs. |
MS_ADR_MAPPING_FILE |
Specifies the ADR translator mapping file. |
MS_CUSTOM_MAPPING_FILE |
Specifies the default custom mapping XML file. |
MS_H3DFILE_DIR |
Enables you to set one or more paths to folders where MotionSolve will search for flexbodies if MotionSolve cannot find the flexbody file from the path located in the model file. Note that in the case where no path is specified in the model file, MotionSolve looks for the flexbody file in the directory where the solver input file resides. |
MS_USERDLL_DIR |
Specifies the list of folders to be searched for the MotionSolve user-written subroutine DLLs/Python scripts. Separate folder names with a semi-colon (;). |
MS_USERSUBDLL |
Specifies the filename for the MotionSolve user-written subroutine DLL file. |
MS_XSD_FILE |
Specifies the XML Schema Description file (XSD) path to be written to the MotionSolve XML file. The XSD file can be used by certain XML editors to validate the XML input file and check for syntax errors. |
MS_XSL_FILE |
Specifies the XML Stylesheet Language file (XSL) path to be written to the MotionSolve XML file. The XSL file can be used by Internet browsers and certain XML editors to render the XML input file into a tabular format specified in the XSL file. |
MS_PLT_UNIQUE_TIME |
May be set to FIRST, LAST, or ALL to control which outputs are written to the .plt file when multiple outputs occur at the same time. |
MS_AS_PORT |
Specifies an alternate port number for socket communication used in co-simulation between MotionSolve and AcuSolve. If not set, the default port number 94043 is used. |
MSOLVE_PLT_EXTENSION
|
Changes the extension of the PLT file. For example: set MSOLVE_PLT_EXTENSION=req |
PYTHONPATH |
Specifies the Python path to select a different version of Python for user subroutines. |
PYTHONHOME |
Specifies the Python home directory to select a different version of Python for user subroutines. |
Running MotionSolve Using the Windows Start Menu