Creating s-function of the block for OPAL RT

12 次查看(过去 30 天)
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

回答(1 个)

Saba Hajhassan
Saba Hajhassan 2023-7-19
Any Help, please?

类别

Help CenterFile Exchange 中查找有关 Block and Blockset Authoring 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by