How to design MATLAB Simulink model for easy real time simulation implementation?
Ältere Kommentare anzeigen
Hello Everyone!
I am trying to simulate a three phase grid connected inverter for voltage and reactive power control purpose. After my simulation is done I want to implement it in OPAL-RT real time simulation and later do the experiment. My question is how should I design my model so that it is easily implementable in real time simulator and then later for experiment. To be specefic, what sample time I should choose? How much should be switching frequency, using discrete or continous powergui? Also, which solver should I choose? Because all of these parameters can effect the performance of my model especially when implementing on real time simulator.
Akzeptierte Antwort
Weitere Antworten (1)
Atanda Raji
am 18 Aug. 2021
0 Stimmen
Yes,there are quite useful videos, technical presentation, peer-reviewed papers on their website.
1 Kommentar
Nagulapati
am 28 Dez. 2024
While building my model with MPC in OPAL-RT environment, I am getting the following error. Can anyone guide me as to why I am getting this error and possible solution.
??? Error using opInitFunction>DisplaySimulinkError (line 466)
??? Simulink error :
Update diagram of Simulink model failed. Please check that the model can run offline in Simulink.
Error using opInitFunction>CompileModel (line 482)
Error evaluating 'InitFcn' callback of MPC block (mask) 'sap_LOsfb_new/SM_LO/MPC Controller'.
Callback string is 'impcblock_InitFcn'
Error in opInitFunction>GenerateModel (line 347)
CompileModel(model);
Error in opInitFunction (line 101)
GenerateModel(action, model, platform, preBuildCmd, postBuildCmd, listSub, StandAloneModel, SlxFormat, compilerVersionName); - Show complete stack trace
Caused by:
Error using opInitFunction>CompileModel (line 482)
Cannot resolve: mpc1. - Show complete stack trace
Error in opInitFunction>CompileModel (line 509)
DisplaySimulinkError(simulink_err);
Error in opInitFunction>GenerateModel (line 347)
CompileModel(model);
Error in opInitFunction (line 101)
GenerateModel(action, model, platform, preBuildCmd, postBuildCmd, listSub, StandAloneModel, SlxFormat, compilerVersionName);
??? Error preparing original model for code separation.
Communitys
Weitere Antworten in Power Electronics Control
Kategorien
Mehr zu Controller Creation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!