Skip to main content
1-Visitor
January 30, 2017
Question

How to integrate Simulink with Integrity Modeler

  • January 30, 2017
  • 3 replies
  • 9074 views

Hello !

I'm searching for a method how to integrate Simulink with Integrity Modeler. I'm working with Simulink synchronizer, but there is always a mistake:

''An error occurred whilst interfacing with Simulink.

'  0×0 empty char array' is not a valid model name because it is not a valid MATLAB function name.  ''

Can someone help me and show a simple example how to integrate Simulink with Integrity Modeler?. ( tutorials e.t.c)

Regards

John

3 replies

16-Pearl
January 31, 2017

Hello,

Have you reviewed the Help topic "Integration for MATLAB Simulink"?

There's lots of information on setup and how to use the integration.

I would also check the Modeler Release Notes (Support for Third Party Products) and confirm you are using a supported version of Simulink.

If there is still a specific issue, you should log a call with PTC Support.

regards,

Patrick

16-Pearl
January 31, 2017

There is an example Simulink model provided in the Examples repository called "Speed Controller". Recommend you use the model provided with Modeler 8.3 M020 (also called 8.3b). You will need Visual Studio and obviously Simulink installed to run. View the Readme inside the model for more information and refer to the Help.

Hopefully this will help you get started.

regards,

Patrick

1-Visitor
February 3, 2017

Hello !

Unfortunately i was not able to solve the problem. In this post i will try to present it by screens.

1. First we have the speed controller block diagram.

1 speed controler.PNG

2. In the second step i have opened speedometer

In this ibd  tools-->simulink synchronizer-->synchronize.

2 speed controler.png

3.  In the 3. step will be given the mapping name  and the synchronization direction from integrity modeler to simulink.

speed controler 3.PNG

4. Mappings

speed controler 4.PNG

5. At this point there is the first problem. Integrity modeler does not recognize the integrity and simulink data type. I don't know why.

speed controler 5.PNG

6. Unfortunately always appears this error. I can only create  empty mdl ord slx file.

speed controler 6.PNG

I would be very grateful if you could provide me with some answers for my abovementioned problems.

I'm looking to forward to hearing with you.

Regards

John

1-Visitor
August 14, 2017

Hi Patrick,

thanks a lot for letting me know!

It is always helpful to know that it does not make sense to try further. Saves time and thought...

Looking forward to the fix in the future (hopefully: next) release.

 

But there is something left: I do have Matlab/Simulink 2015b available as well (parallel install) and exported the model to be saved for that version. Unfortunately that alone does not help, as I did not find a way to tell the Simulink-Synchonizer which version of Matlab to use when he starts the tool. He apparently takes the Windows default (Matlab 2016b), which I do not want to move to the old version (to avoid messing up with my other activities). Simply changing the standard applications allocated in Windows to the file name extensions .m, .slx, .sltx, .sldd, .mdl to the installation of the old Matlab 2015b did not help, anyway.

 

Is there a way to tell the synchronizer the path to the Matlab-Version to use? Maybe through a tweek of the vbs-files that the simulink profile invokes (to avoid the need of an update of "MathematicalHelper.dll" (which contains the Starter/Wrapper-Code of the Synchronizer, if I get it right), or the MathematicalModelSynchronizer.exe itself?

 

All the best

Jan

16-Pearl
November 7, 2019

Hello,

 

You can now use the integration with Phoneix Integration ModelCenter to integrate with Simulink.

You can find details in the Help, and also some demos on our YouTube channel:

 

https://www.youtube.com/watch?v=mm0bdIFyHWk

https://www.youtube.com/watch?v=FuvLIIkiRnU

 

regards,

Patrick