Frequently asked questions

Need technical support?

How to resolve the Unknown Kind error shown during Model Integration ?

Question

While trying to select and use a custom model from the GUI, the unknown kind error is shown at the start of simulation in Session Log.

What is the meaning of the error and how to resolve it ?

Solution

What is the reason for the error?

  • Model Integration in CarMaker Standalone typically involves a xxx_Register() function, which is called from the User_Register() function of User.c
  • This step updates the list of known Model Kinds, which is used by the CarMaker Model Manager
  • The 'unknown kind' error is triggered by the CarMaker Model Manager, if the Model Kind is not known to the Model Manager, but still selected from the GUI


What to check?

The actual steps vary depending on whether the Model is integrated as a Simulink Plugin or via the C-Code interface.

  • Simulink Configuration parameters (applicable for Simulink Plugins only)
    • Hook up model into project source code is activated
    • Automatic 'make' in the project source directory is activated
    • Note: The options are activated by default. Should only be deactivated, if the development environment is different from the simulation environment
  • Register function of the custom model is available under User.c in the User_Register() function
  • Modifications in Makefile are available and correct (to be manually done for C-Code interface)
  • Correct simulation program (executable) is selected under ApplicationConfiguration GUI
    • in CarMaker/Office, it is accessible via CM Main GUI > Application > Configuration / Status
    • in CarMaker/HIL, it is accessible via CM Main GUI > Realtime System > Configuration / Status
  • After successful Start & Connect, check the following in Application Configuration GUI > Compile Info Tab
    • Compiled date & time are correct
    • Compiled options are correct
    • Plugin model is available under the Libraries section (applicable for Simulink Plugins only)

The steps described above are applicable both for the /src folder of CM Standalone (Office or HIL) and for the /src_cm4sl folder of CM4SL environments.

For plugin model integration in CM4SL

  • the CarMaker project source directory in Simulink Configuration Parameters window should be adapted as necessary
  • the simulation program is automatically selected for the subsequent TestRun
  • the 'which libcarmaker4sl' and 'libcarmaker4sl' commands in the MATLAB command window can be used to ensure, if the correct simulation program is loaded
Need technical support?
  • Date: 23.01.2020
  • Product: CarMaker
  • Version: 9.1
  • Component: Model Integration
  • Language: English

Tags

C-Code Interface
Simulink Plugins
Model Manager
Makefile