MATLAB running the simulink model shows that the library cannot be found Failed to load library 'lib_Cmtrl_SetPoint_TMATS' reference by ' '

MATLAB running the simulink model shows that the library cannot be found Failed to load library 'lib_Cmtrl_SetPoint_TMATS' reference by ' '

  The AGTF30 (Advanced Geared Turbofan Engine) model is a geared turbofan engine model based on TMATS, which includes a steady-state model, a dynamic model and a linearized model of the engine. When running a dynamic model, it must first be run setup_everything.mto load the bus variables and MWS of each module. However, an error is reported during operation Failed to load library 'lib_Cmtrl_SetPoint_TMATS'reference by ' ', as shown in the figure below:
insert image description here
  The above error indicates that loading a certain library in TMATS has failed, and the reason is that MATLAB needs to search in the set path set by it. At this time, the path of MATLAB is shown in the figure below:
insert image description here
  You can see that there is no T_MATS in the path, so when installing and using T_MATS, you must add this folder and its subfolders to the path of MATLAB. The setting method is as follows:
insert image description here
  After the addition is successful, open the set path of MATLAB again, and you can see that T_MATS related files and libraries have been added.
insert image description here
  Click save to save, and setup_everything.myou don't need to reset it when you run it next time.
  Now, run it again setup_everything.m, and you can see that it has succeeded without reporting an error.

Guess you like

Origin blog.csdn.net/weixin_43943476/article/details/124661763