Linking Simplorer with Matlab/Simulink R2015b and Higher?

4 次查看(过去 30 天)
Linking Simplorer with Matlab/Simulink R2015b and Higher
Hello,
is it possible to link Simplorer 17.2 with Simulink R2015b? I am following procedure described in https://www.mathworks.com/matlabcentral/answers/160102-how-do-i-link-simplorer-to-simulink
In 4. (Setting ANSYS path in MATLAB) I choose C:\Program Files\AnsysEM\AnsysEM17.2\Win64\cpl\matlab\R2015a as it is closest to R2015b.
I am able to define a Simulink Subcircuit (according 8.) in Simplorer and read defined parameters in Simulink, but I cannot read simulink model in simplorer (Read link information from the file in Add Simulink Subcircuit) even though I export simulink model into R2015a version.
When I start simulation in Simulink, it returns this error message:
Error reported by S-function 'AnsoftSFunction' in 'Simplorer_link_1a/S-Function': ȸw
When I start simulation in Simplorer, it reuturns these error messages:
[info] Compilation... (4:06:20 odp. 10 13, 2016)
[info] Compiler completed successfully. (Time < 1 sec) (4:06:22 odp. 10 13, 2016)
[info] Number of models: 5; Simulation is using Simplorer Entry solver license (4:06:22 odp. 10 13, 2016)
[info] Analyzing... (4:06:22 odp. 10 13, 2016)
[error] [Sim2000] Error - A supported Matlab installation was not found. >> Prepare (4:06:22 odp. 10 13, 2016)
[error] [Sim2000App] Error 10532 - Error encountered while PREPARE. >> Close (4:06:22 odp. 10 13, 2016)
[error] Simulation completed with execution error on server: Local Machine. (4:06:22 odp. 10 13, 2016)
Could you please help me?
  2 个评论
Balram M
Balram M 2019-7-24
Hi, Michal Kosik I am also facing same issue. Did you solve the problem without changing the Matlab verson 2015b to 2015a.
Please respond, every kind of support regarding this will be very much valuable for me.
Michal Kosik
Michal Kosik 2019-7-27
Hello Balram,
as I didn't need a real time connection between Matlab and Simplorer, but only exchange of results, I used scripts both in Simplorer and Matlab to read CSV files containing the data. It was way easier than linking, with which some further issues arised even after installing Matlab 2015a. If I remember it well (it was quite a while), there were issues that there could be only specific version of NET frameworks installed at my computer.

请先登录,再进行评论。

回答(2 个)

INFOZOU
INFOZOU 2016-10-16
编辑:Walter Roberson 2016-10-16

Walter Roberson
Walter Roberson 2016-10-16
It looks to me as if Simplorer is checking which MATLAB release you are using, and is refusing to run because it is not supported on that release.
If I am right then if you install R2015a and use it then it would work.
Because you have a R2015b license, you can use the Mathworks downloads section to download any previous version, including R2015a; it will work with your existing license.
  1 个评论
Kevin Bachovchin
Kevin Bachovchin 2018-2-26
@Walter Roberson, When doing a co-simulation between Simulink and Simplorer, how should I setup the time step and the solver?
I am able to successfully link Simplorer and Simulink and run from either Simplorer or Simulink without getting any errors using the instructions from https://www.mathworks.com/matlabcentral/answers/160102-how-do-i-link-simplorer-to-simulink?s_tid=gn_loc_drop. However, the value being read in Simplorer from Simulink is coming out as all zeros. I'm thinking this might be happening due to a problem with the time step synchronization between Simplorer and Simulink.
I also created a new thread with this issue if you want to respond there instead: https://www.mathworks.com/matlabcentral/answers/384947-linking-simplorer-and-simulink

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by