For Programmers: Free Programming Magazines  


Home > Archive > Matlab > November 2005 > Error converting from MATLAB array to Simulink data









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Error converting from MATLAB array to Simulink data
Emel

2005-11-22, 8:02 am

Hi everyone,

I need help.

I wrote a level-2 m-file S-function, but my model does not work.
Simulink gives the error 'Error evaluating registered method
'InitializeConditions' of M-S-Function....Error converting from MATLAB
array to Simulink data'

In my InitializeConditions I only have

function InitializeConditions (block)
block.Dwork(1).Data = zeros(1, 32);
block.Dwork(2).Data = zeros(1, 32);

Do you have an idea?

Thanks in advance...

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com