Configuring Adams > Applying Advanced Settings > Adams Controls Environment Variables

Adams Controls Environment Variables

The following are Adams Controls environment variables:
 
Variable name:
Variable value:
What it does:
ADAMS_CONTROLS_WTIME
An integer number such as 5 or 10.
Sets the total wait time (that is, until time-out) in start-up to create a pipe for a pipes-based co-simulation or function evaluation when using Adams Controls on Windows. Controls will test for the pipe every half second and may finish before the end time. Options are integers. Default = 60 (seconds).
ADAMS_FMI_LOG
An integer number such as 1 for on. To switch off the functionality, unset the environment variable.
When Adams is acting as FMI parent, setting this environment variable would allow logging of any FMI messages into a file called fmilog.txt which would be available in the current working directory of Adams
ADAMS_PATH_FOR_FMU
A string pointing to the path of the Adams installation folder which is to be used by the Adams FMU
If the user has multiple Adams installations or has exported the FMU using one version of Adams and wants to run it in another version of Adams, this environment variable has to be specified so that it forces the FMU to use that version of Adams. Example of how the environment variable is set is given below.
ADAMS_PATH_FOR_FMU= C:\Program Files\MSC.Software\Adams\2024_1
DEBUG_CONTROLS
An integer number such as 1 for on. To switch off the functionality, unset the environment variable.
During a co-simulation or function evaluation run, this will create two files (one for the Adams server side, and one for the client) in the working directory with information about the data passed between client and server.
MSC_ACONTROLS_DISCRETE_
STATES
An integer number such as 1 for on. To switch off the functionality, unset the environment variable.
When unset, only a single dummy discrete state is displayed for the GSE. When set, this will report all discrete states found in the External System Library. Default = unset.
MSC_ADAMS_COSIM_SIM_DYN
An integer number such as 1 for on. To switch off the functionality, unset the environment variable.
Adams Controls will run as a standard dynamic analysis instead of an event based analysis when an Adams Car model is used as a plant model.
MSC_ADAMS_SKIP_FMUCHECK
An integer number such as 1 for on. To switch off the functionality, unset the environment variable.
When importing an FMU (Adams Controls System Import), CheckFMU is executed to ensure the FMU is valid prior to creating the GSE for the External System Library. Setting this environment variable also you to skip CheckFMU.
SHOW_CMD_WINDOW
An integer number such as 1 for on. To switch off the functionality, unset the environment variable.
When Adams is acting as a child during a parent child co-simulation, setting this environment variable allows the command window to be shown. This is helpful during debugging to find out any error messages being printed by the child. Note that this could slow down the co-simulation under ordinary circumstances due to the potentially large volume of messages that could be printed here and hence should be enabled only for debugging.