Convert to code using Simcoupler
25 次查看(过去 30 天)
显示 更早的评论
Attempt to convert to C Code using Simcoupler. If the conversion to code is successful, I plan to connect to the S32K144 EVB board, but the C code conversion is not successful. Note that the file currently opened and being tested is the pmsm_simulink_PWM_R2018 example file.
However, the following issues occur.
Unable to find S-function module 'SimCoupler'. S-function modules must exist as either source files or pre-compiled object files on the MATLAB path.
0 个评论
回答(1 个)
Angelo Yeo
2023-10-31
To access the S-function in SimCoupler on Simulink, the SimCoupler must be configured with Simulink.
The SimCoupler Toolbox is not a MathWorks product; it is provided by a third-party company and you will need to purchase it separately.
Once the toolbox is purchased and configured with Simulink, you can proceed with the co-simulation workflow.
Information about SimCoupler Toolbox can be found in the following URL:
2 个评论
Angelo Yeo
2023-11-1
Thank you for your clarification. I must confess that my familiarity with the SimCoupler module is limited, and I am uncertain about the manner in which this module is provided.
If the module is delivered with a source file or pre-compiled object files, I recommend adhering to the guidance provided by the error message. Specifically, it suggests placing the files on a MATLAB path.
However, if this solution doesn't apply to your situation, I would advise reaching out to Powersim directly for further assistance. It is unclear to me whether they have considered the use of SimCoupler for code generation purposes. You can request support from Powersim through the following link: Powersim Support.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 C Shared Library Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
