Creating s-function of the block for OPAL RT

14 Ansichten (letzte 30 Tage)
Saba Hajhassan
Saba Hajhassan am 18 Jul. 2023
Beantwortet: Saba Hajhassan am 19 Jul. 2023
I have simulink model and inside this simulink model, there is a ''S-Function'' block (subsystem) which reads .m (matlab file). I want to build this simulink model in OPAL RT (real time software). According to the OPAL-RT instructions, in order to do that I need to build RT-LAB S-function of the subsystem. When I type in MATLAB command window, command ''create_rtlabsfcn'' I get the following Error.
All the files are in the same folder and it is done in Simulink thorugh OPAL-RT.
Can anyone please help how to solve this?
I attached the pdf of instruction file and the rtlabsfcn.m !
Selected subsystem : MG_5VOCs_2019b_17_07_without_Trafo/SM_Calculation/VOC_10/V control/P_sync_8/S-Function_1
Build RT-LAB S-Function for selected subsystem? [Y/N] : Y
S-Function name : S-Function_1_sf
Error using rtwbuild (line 37)
First argument to 'rtwbuild' must be a model name or full subsystem name or a handle to a model or subsystem.
Error in create_rtlabsfcn (line 62)
rtwbuild(subsystem); - Show complete stack trace

Antworten (1)

Saba Hajhassan
Saba Hajhassan am 19 Jul. 2023
Any Help, please?

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by