How can I make SimCoupler work ?

I want to use SimCoupler to have a co-simulation between PSim and MATLAB Simulink. My PSim version is 9.1. My MATLAB version is R2012.b. I have done everything written in the PSim tutorial but when I click on the browse button of the SimCoupler block in Simulink I have the following message :
Undefined function 'SimCoupler' for input arguments of type 'double'.
Error in PSimDialog>BrowseBtn_Callback (line 107) SimCoupler(100, get(handles.PSimFileEdt, 'String'));
Error in gui_mainfcn (line 96) feval(varargin{:});
Error in PSimDialog (line 42) gui_mainfcn(gui_State, varargin{:});
Error while evaluating uicontrol Callback
Thanks in advance for your help.

9 Kommentare

Ranjithkumar Gatla
Ranjithkumar Gatla am 5 Jun. 2017
I too got the same problem, and getting the following message
Cannot find an exact (case-sensitive) match for 'PsimDialog'
The closest match is: PSimDialog in C:\Program Files\MATLAB\R2016a\toolbox\simulink\SimCoupler\PSimDialog.m
Error while evaluating UIControl Callback
Adam
Adam am 5 Jun. 2017
Just spell it correctly then! It isn't the 'same' problem at all.
Ranjithkumar Gatla
Ranjithkumar Gatla am 6 Jun. 2017
sorry, I didn't understand, what do you mean?
Adam
Adam am 6 Jun. 2017
Bearbeitet: Adam am 6 Jun. 2017
Your error message tells you exactly what the problem is. You wrote PsimDialog which is not a known function/class, but PSimDialog is, just change it to that.
Ranjithkumar Gatla
Ranjithkumar Gatla am 7 Jun. 2017
yes, I have changed, but still I am getting same error
Adam
Adam am 7 Jun. 2017
You can't be getting the same error if you have spelled it correctly.
mansi joisher
mansi joisher am 17 Mär. 2021
I am having the same issue. @Ranjithkumar Gatla were you able to resolve this ?
YASSER
YASSER am 13 Feb. 2025
Bearbeitet: YASSER am 13 Feb. 2025
Simcoupler is free for the last version of matlab: in 2011
above this version of matlab, is premium
Dao
Dao am 9 Sep. 2025
How about Matlab trial 2021a?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

santhosh
santhosh am 19 Jul. 2014
Bearbeitet: santhosh am 19 Jul. 2014

0 Stimmen

You have to configure simcoupler first. In PSIM, click on simcoupler setup(Utilities->Simcoupler setup) and let the PSIM configured with MATLAB. Then you're good to go.

Produkte

Tags

Gefragt:

am 25 Mär. 2014

Kommentiert:

Dao
am 9 Sep. 2025

Community Treasure Hunt

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

Start Hunting!

Translated by