Effacer les filtres
Effacer les filtres

Creating s-function of the block for OPAL RT

14 vues (au cours des 30 derniers jours)
Saba Hajhassan
Saba Hajhassan le 18 Juil 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

Réponses (1)

Saba Hajhassan
Saba Hajhassan le 19 Juil 2023
Any Help, please?

Catégories

En savoir plus sur Block and Blockset Authoring dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by