User Libraries

In Adams when you want to link in a user subroutine, you create a library (standard user executable) and simply select it when you need the subroutine(s) within the library.

To create a user library:

1. Perform one of the following:
On Linux: enter adams2024_1 -c cr-user
On Windows: From the Start menu, point to Programs, point to Adams 2024.1, point to Adams Solver, and then select Create Custom Solver. (Or, type adams2024_1 cr-user in the DOS prompt.)
2. Specify if you want to link in debug mode, and provide the list of your user subroutines.
3. Provide a name for the Adams Solver library, such as my_sub.dll.
4. Within Adams View, when you use the Controls Plant Export dialog box to write out your input and output data, include the name of the user library you just created in the appropriate text box.
The user executable name is now automatically written out to the MATLAB .m file or the EASY5 information file and automatically picked up by the controls program as the proper executable. Alternatively, you can enter this explicitly in the file. For example, in MATLAB, enter Adams_exec = '$my_path/my_sub.dll'; (where $my_path is the path to your library).
For more information, see the Running and Configuring online help.