Creating s-function of the block for OPAL RT

11 visualizaciones (últimos 30 días)
Saba Hajhassan
Saba Hajhassan el 18 de Jul. de 2023
Respondida: Saba Hajhassan el 19 de Jul. de 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

Respuestas (1)

Saba Hajhassan
Saba Hajhassan el 19 de Jul. de 2023
Any Help, please?

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by