MATLAB Integration with CST

Discussions about integrations with other 3th party tools

Moderator: Moderators

MATLAB Integration with CST

Postby mhbl3@gatech.edu » Tue May 29, 2018 3:33 pm

Hello,

I am trying to use a MATLAB function as an opaque action using a simple model that you guys had on another discussion of this forum.
I have done integrating MATLAB (it shows "Integrate") however, when I run the activity I get this error:
00:00:11,408 ERROR: javax.script.ScriptException: null

When I try to do anything in the MATLAB console in MD I get the same error. Is there a solution for this?
I am using MagicDraw 18.5 and MATLAB 2017b

Thank yo
mhbl3@gatech.edu
Forum Newbie
Forum Newbie
 
Posts: 18
Posts Rating:0
Joined: Fri May 18, 2018 11:35 am

Re: MATLAB Integration with CST

Postby jirawat.l@nomagic.com » Wed May 30, 2018 12:55 am

Dear Customer,

Please try to re-integrate the MATLAB and restart the OS.
if MATLAB still doesn't work please send us the log file for investigation
You can see the location of log file by select Help->About MagicDraw->Environment

Best regards,
No Magic Customer Support
jirawat.l@nomagic.com
Customer Support
Customer Support
 
Posts: 58
Posts Rating:5
Joined: Mon Nov 16, 2015 1:57 am

Re: MATLAB Integration with CST

Postby mhbl3@gatech.edu » Wed May 30, 2018 11:18 am

Another issue is that when going to tools > Integration, choosing my MATLAB folder and pression on "OK" MagicDraw seems to be frozen. I cannot click on anything, but when I restart my laptop and go to tools > Integration again, I will see MATLAB as integrated.

I have attached the log file.

Thanks!
You do not have the required permissions to view the files attached to this post.
mhbl3@gatech.edu
Forum Newbie
Forum Newbie
 
Posts: 18
Posts Rating:0
Joined: Fri May 18, 2018 11:35 am

Re: MATLAB Integration with CST

Postby jirawat.l@nomagic.com » Wed May 30, 2018 11:11 pm

Dear Customer,

It seems that the integration is incomplete and we found the invalid path in system variable.
Please follow the steps below
- Ensure that you are using the MATLAB 64bit.
- Ensure that you are using the MagicDraw 64bit
- Go to Control Panel\System and Security\System -> Advanced system settings
- Click Environment Variable and edit the "Path" variable in System variable.
- Change "C:\Program Files\MATLAB\R2017b\bin\win32" to "C:\Program Files\MATLAB\R2017b\bin\win64" (It seems that you are using the MATLAB 64bit but have the old path from 32bit version)
-Register the MATLAB components to Window by run the cmd and execute the command "matlab /regserver"
-Restart the OS
-Run MagicDraw and check the MATLAB again.

if MATLAB still doesn't work, please send us the log file for further investigation.

Best regards,
No Magic Customer Support
jirawat.l@nomagic.com
Customer Support
Customer Support
 
Posts: 58
Posts Rating:5
Joined: Mon Nov 16, 2015 1:57 am

Re: MATLAB Integration with CST

Postby mhbl3@gatech.edu » Thu May 31, 2018 10:44 am

This seems to have solved my issue.
Thanks for your help!
mhbl3@gatech.edu
Forum Newbie
Forum Newbie
 
Posts: 18
Posts Rating:0
Joined: Fri May 18, 2018 11:35 am


Return to Integrations

Who is online

Users browsing this forum: No registered users and 0 guests