In the S Function Builder window when you click "build" you get the MEX file "s_func_calc_power.mex64". Saying that, if you already have this MEX file (generated by the S Function builder) why do you need to run the command mex?
Thank you, straight to the point and brief. One question tho, what is the importance/application of the S-Function? Because the example you demonstrated can be done using matlab function or blocks Thanks again
Hello dear, i have problem in diagnosing the s-function builder and it generate following error if i try to simulate the same program as you did in the video. C:\PROGRA~1\MATLAB\R2012B\BIN\MEX.PL: Error: No compiler options file could be found to compile source code. Please run "mex -setup" to rectify.
2 error's TLC Compiler encountered an OUT_OF_MEMORY condition. Attempting to clean up... and Fatal error in slbuild... As I can fix that, or what it means?
No, I haven't. It seemed to be not that easy to extend the low level functionality for example of the Arduio Target. But it was more than a year ago, may be MATHWORKS opened that part...
Thank you for your this video. I could understand the way to use S-Function Builder easily.
how can I do this in 2021a version? I can't find like 1:15
Do I need to generate code for s functions or directly right click on model and select c/c++ s function generation
thank you so much !! your lesson has been simple, clear and very useful !!
Thanks for the short and concise tutorial
Thank you for the kind words!
In the S Function Builder window when you click "build" you get the MEX file "s_func_calc_power.mex64". Saying that, if you already have this MEX file (generated by the S Function builder) why do you need to run the command mex?
Thanks a lot. This Video is really helpful. Keep the spirit up.
Amazing! Please do carry on the good works!
Thank you, straight to the point and brief.
One question tho, what is the importance/application of the S-Function? Because the example you demonstrated can be done using matlab function or blocks
Thanks again
Hello dear, i have problem in diagnosing the s-function builder and it generate following error if i try to simulate the same program as you did in the video.
C:\PROGRA~1\MATLAB\R2012B\BIN\MEX.PL: Error: No compiler options file could be found
to compile source code. Please run "mex -setup" to rectify.
Hello , very concise and useful ,thanks a lot
is that possible to extract this voltage and current to workspace during simulation
Yes, with the Simulink block "To Workspace"
2 error's
TLC Compiler encountered an OUT_OF_MEMORY condition. Attempting to clean up...
and Fatal error in slbuild...
As I can fix that, or what it means?
+fabio cisneros Sorry, fabio, but I can't help you on that, I never had this error before.
Please what does it mean to have an error message which say 'undeclared identifier' and 'variable have struct/union type'?
Can you show me the whole log output? Using pastebin.com/ for example. Otherwise it's hard to find out what the error message is meant to be.
I have an issue with compiler MinGW, can i add to matlab offline
Clear, simple and usefull. Thank you very much !
RobinThoughts I'm glad you like it :)
Have you tried to implement a s-function in embedded target, which contains device driver, such as GPIO?
No, I haven't. It seemed to be not that easy to extend the low level functionality for example of the Arduio Target. But it was more than a year ago, may be MATHWORKS opened that part...
Can you also share the c file for it ?
How can i set compiler by default in MATlab to cpp?
Adnan Majeed Have you set the compiler with the "mex -setup" command? Do you get the list of available compilers?
Great video. Very helpful. Vielen Dank
how can i give my data to s-function? plz heeeeeeeeeeeeeeeeeeeeeeeeeeeeelp
Thank you, it helps. :)
thanks alot for this video very helpful
I'm glad I could help you :)
Thank you, it helps
Thank you!
Very Good: at first I thought you do not know what you are doing :-) - then I realized you intentionally made mistakes. Good work.