Is there a way to run a CarMaker script(tcl) from matlab?

I need to run a CarMaker tcl script, that I created, from a matlab script. Is there a way to do this? CarMaker is connected to simulink.

1 Like

Hello and welcome to the forum!
In CarMaker for Simulink it is possible to execute any Tcl statement (including all ScriptControl commands) with the help of a special Matlab command called “cmguicmd”. Please have a look at the following FAQ entry:

https://ipg-automotive.com/cn/support/client-area/faq/ticket/automate-carmaker-from-matlab/

Using “cmguicmd” you can call the ScriptControl command “RunScript” in Matlab to run your tcl script in CarMaker. Please have a look at the Programmers Guide chapter 23.4.26 “Miscellaneous Commands” (CM 10.1) for more information about the “RunScript” command.

2 Likes