Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
error running FRD example on 2013a as shown on Mathworks web page

Subject: error running FRD example on 2013a as shown on Mathworks web page

From: Nasser M. Abbasi

Date: 17 Jul, 2013 03:23:08

Message: 1 of 2

I am using Matlab 2013a, and was running the example shown here

http://www.mathworks.com/help/control/examples/compensator-design-for-systems-represented-by-frequency-response-data.html

--------------------------
EDU>> clear all
EDU>> load FRDPlantDemoData.mat
EDU>> AnalyzerData

AnalyzerData =

           Response: [594x1 double]
          Frequency: [594x1 double]
     FrequencyUnits: 'rad/s'

EDU>> FRDPlant = frd(AnalyzerData.Response,AnalyzerData.Frequency,'Unit',AnalyzerData.FrequencyUnits);
EDU>> sisotool({'bode','nichols'},FRDPlant)
Error using uicontrol
There is no HelpTopicKey property on the StyleControl class.

Error in sisogui.sisotool/addcontrols>LocalMakeStatus (line 44)
StatusText = uicontrol('Parent',SISOfig,...

Error in sisogui.sisotool/addcontrols (line 10)
sisodb.HG = struct(...

Error in sisotool (line 273)
addcontrols(sisodb)
-------------------------------

32 bit, on windows 7 64 bit OS.

EDU>> which sisotool
C:\Program Files (x86)\MATLAB\R2013a Student\toolbox\control\control\sisotool.m

Was wondering if someone else can try this and see if they get
the same errors.

--Nasser

Subject: error running FRD example on 2013a as shown on Mathworks web

From: Nasser M. Abbasi

Date: 17 Jul, 2013 03:41:15

Message: 2 of 2

On 7/16/2013 10:23 PM, Nasser M. Abbasi wrote:
> I am using Matlab 2013a, and was running the example shown here
>
> http://www.mathworks.com/help/control/examples/compensator-design-for-systems-represented-by-frequency-response-data.html
>
> --------------------------
> EDU>> clear all
> EDU>> load FRDPlantDemoData.mat
> EDU>> AnalyzerData
>
> AnalyzerData =
>
> Response: [594x1 double]
> Frequency: [594x1 double]
> FrequencyUnits: 'rad/s'
>
> EDU>> FRDPlant = frd(AnalyzerData.Response,AnalyzerData.Frequency,'Unit',AnalyzerData.FrequencyUnits);
> EDU>> sisotool({'bode','nichols'},FRDPlant)
> Error using uicontrol
> There is no HelpTopicKey property on the StyleControl class.
>
> Error in sisogui.sisotool/addcontrols>LocalMakeStatus (line 44)
> StatusText = uicontrol('Parent',SISOfig,...
>
> Error in sisogui.sisotool/addcontrols (line 10)
> sisodb.HG = struct(...
>
> Error in sisotool (line 273)
> addcontrols(sisodb)
> -------------------------------
>
> 32 bit, on windows 7 64 bit OS.
>
> EDU>> which sisotool
> C:\Program Files (x86)\MATLAB\R2013a Student\toolbox\control\control\sisotool.m
>
> Was wondering if someone else can try this and see if they get
> the same errors.
>
> --Nasser
>


I found the cause of the problem.

I remembered that I was starting Matlab in graphics mode 2.

i.e using "-hgVersion 2" option. See http://undocumentedmatlab.com/blog/hg2-update/
for more information on this.

Never had problem before, this is the first time. So it looks like
not everything in Matlab works with HG2 still.

--Nasser

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us