MATLAB Answers

Error compiling Simulink for dSpace

43 views (last 30 days)
Enrico Bianco
Enrico Bianco on 19 Jan 2020 at 14:06
Edited: stozaki on 26 Jan 2020 at 4:09
Dear all, I have a dSpace and the related software on a Windows XP, I use Simulink (Matlab R2011b) to build the model and then I use dSpace ControlDesk to change parameters and see results. I never had problems in compiling but yesterday I added a Matlab Function in the Simulink model and after this I got an error. I tried to change the function and I discovered that up to line 6 of the Matlab Function everything works; if I had line 7 i get the error (even if I add line 9). It seems that I cannot access variable "a" like a(1) , a(2),... or I cannot multiply a vector. I add the screenshot of my function and of the error in Matlab, hoping that you can help me.
Thank you, Enrico.

  1 Comment

stozaki on 26 Jan 2020 at 4:08
The variable "a" appears to be unused.
A warning has been observed on the code analyzer. Please check the code analyzer message.

Sign in to comment.

Answers (0)

Sign in to answer this question.

Translated by