MATLAB Answers

1

Problem while running SIMULINK on Raspbery Pi B+using Matlab 2014a

Asked by sky1991 matlab on 17 Oct 2014
Latest activity Commented on by Sean de Wolski
on 27 Jul 2017
Hi all, I have followed the steps provided by mathwork and everything is file in connection. But when I tried to open simulink example I get the erorrs
>> raspberrypi_inversion Warning: Undefined variable "codertarget" or class "codertarget.updateExtension". Warning: Detected 1 error(s) in Simulink.ConfigSet.getDialogSchema: Undefined variable "Simulink" or class "Simulink.sta.FeatureControl.getFeature".
And when I click on tool-->Run on Target Hardware---> Option it gives following error:
Warning: Detected 1 error(s) in Simulink.ConfigSet.getDialogSchema: Undefined variable "Simulink" or class "Simulink.sta.FeatureControl.getFeature".
Cannot create config set dialog >>
I am unable to resolve this please help me out what is missing and how to resolve.
<<
>>

  0 Comments

Sign in to comment.

2 Answers

Answer by Sean de Wolski
on 17 Oct 2014
 Accepted Answer

Sounds like a path issue:
which Simulink.sta.FeatureControl.getFeature
Should return something like
C:\Program Files\MATLAB\R2014b\toolbox\simulink\sta\ui\+Simulink\+sta\@FeatureControl\FeatureControl.p % static method or package function
Try running the following:
restoredefaultpath
rehash toolboxcache
This should resolve it.

  1 Comment

Thanks Sean de Wolski.
It worked. :)

Sign in to comment.


Answer by Florian Dignath on 20 Jul 2017

Hi,
I get exactly the same error as desribed here, when clicking on the "Model Configuration Parameters" Button in Simulink (Windows 7, Matlab R2014a). I installed R2014a completely new and still got the same error on a new, empty Simulink model.
When I use "restoredefaultpath, rehash toolboxcache" as suggested here, everything works fine! However, whenever I restart Matlab, the error returns. Even though, I use "save path" and don't edit anything else.
Is there a way of preventing this error permanently?

  1 Comment

Run MATLAB as an admin then call savepath after doing the restore.

Sign in to comment.