Linking Simplorer with Matlab/Simulink R2015b and Higher?

조회 수: 6 (최근 30일)
Michal Kosik
Michal Kosik 2016년 10월 13일
댓글: Michal Kosik 2019년 7월 27일
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에서 Install Products에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by