Simulink Error: Error invoking object method
2 次查看(过去 30 天)
显示 更早的评论
I tried to load either "Continuous Wave" or "Sinusoid" model from SimRF library on my model but it returns with "Initialization commands cannot be evaluated. --> Undefined function 'simrfV2cwsource1' for input arguments of type 'char.' However, I have correctly located the sim library in the MATLAB path. Looking at the model, obvously, the Simulink cannot locate the library model. What am I doing wrong?
0 个评论
回答(1 个)
Nirja Mehta
2017-2-6
Try opening any of the models listed in this link: http://www.mathworks.com/help/simrf/examples.html
If it still does not work, there is a chance that SimRF is not added to your MATLAB search path. On your MATLAB command prompt, execute the following commands and try to load your model again:
>> restoredefaultpath
>> rehash toolbox
>> rehash toolboxcache
>> sl_refresh_customizations
Following link suggests similar approach: http://www.mathworks.com/matlabcentral/answers/297539-refresh-function-and-sytem-path-cache
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Circuit Envelope Simulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!