How to make S-function for simcoupler for co-simulation of MATLAB and PSIM?

10 Ansichten (letzte 30 Tage)
As i am using Matlab version 2015a and PSIM version 9.0 and i want to use simcouple to perform cosimulation between Matlab and PSIM but it generates following error when we try to attach simulation schematic of PSIM in simcoupler.
''Error in UIControl callback"
We have two .m files in PSIM directory slblocks.m and PSimDialog.m and i run both of the programs and i have error in PSimDialog.m file.
Please guide me in this regard.
Thanks Muhammad Saleem
  3 Kommentare
Muhammad
Muhammad am 1 Sep. 2015
when i attache the simulation file of PSIM in the simulink using simcoupler then it generates an error when i press apply button. Following is the error message:
Error using PSimDialog>CloseBtn_Callback (line 217) Error reported by S-function 'SimCoupler' in 'chop1q_ifb_simulink_r_13/chop1q_ifb_psim': PSIM Message: %1 is not a valid Win32 application.
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in PSimDialog (line 42) gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)PSimDialog('CloseBtn_Callback',hObject,eventdata,guidata(hObject))
Please guide me with error gerated by Matlab. Thanks
Aland Bravo
Aland Bravo am 23 Dez. 2016
Solved: It works fine on Matlab R2011a and PSIM 9.0 version.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Varun Bhaskar
Varun Bhaskar am 26 Aug. 2015
Hi,
What is the error message you encountered?
  3 Kommentare
Muhammad
Muhammad am 1 Sep. 2015
when i attache the simulation file of PSIM in the simulink using simcoupler then it generates an error when i press apply button. Following is the error message:
Error using PSimDialog>CloseBtn_Callback (line 217) Error reported by S-function 'SimCoupler' in 'chop1q_ifb_simulink_r_13/chop1q_ifb_psim': PSIM Message: %1 is not a valid Win32 application.
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in PSimDialog (line 42) gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)PSimDialog('CloseBtn_Callback',hObject,eventdata,guidata(hObject))
Please guide me with error gerated by Matlab. Thanks
fei teng
fei teng am 30 Mär. 2016
I have meet the same problem with you I want to co_simulation between PSIM and MATLAB , when I open the example of psim which it provided, and start the simcoupler. but some errors always hit my eyes.The errors are similar to you ,such as Error in PSimDialog. Idon't know how to deal with it. if you know this solution ,please tell me ,thanks very much!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Ranjithkumar Gatla
Ranjithkumar Gatla am 5 Jun. 2017
PSIM 9.0 is not compatible with MatLab/Simulink R2015R. You must upgrade to PSIM 10 or later. Another option is to use MatLab R2013a or earlier version.

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by