Creating s-function of the block for OPAL RT

11 ビュー (過去 30 日間)
Saba Hajhassan
Saba Hajhassan 2023 年 7 月 18 日
回答済み: Saba Hajhassan 2023 年 7 月 19 日
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 Center および File ExchangeModeling についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by