cancel
Showing results for 
Search instead for 
Did you mean: 

MATLAB/Simulink STM32MatTarget blocks generate warnings regarding NARGCHK function

michaelkotthaus9
Associate II
Posted on January 19, 2017 at 18:44

For evaluation purposes I created a MATLAB/Simulink model which uses the STM32MatTarget 4.4.0 blocks.

With the MATLAB/Simulink version R2016b I get a lot of warning messages (around 160 with a small model):

Warning: NARGCHK will be removed in a future release. Use NARGINCHK or NARGOUTCHK instead.

How do I fix these warnings?

Where is the code located, which generates these warnings?

The deprecated function to check the number of arguments ('nArgChk') is describet at

https://de.mathworks.com/help/matlab/ref/nargchk.html

.

#simulink #stm32-mat/target #matlab
1 ACCEPTED SOLUTION

Accepted Solutions
Nesrine M_O
Lead II
Posted on January 20, 2017 at 10:03

Hi

‌,

It is just a warning about a deprecated function that is resolved for next version available soon.

-Nesrine-

If my suggest answers your question, please mark it as correct.

 

View solution in original post

8 REPLIES 8
Nesrine M_O
Lead II
Posted on January 20, 2017 at 10:03

Hi

‌,

It is just a warning about a deprecated function that is resolved for next version available soon.

-Nesrine-

If my suggest answers your question, please mark it as correct.

 

michaelkotthaus9
Associate II
Posted on January 20, 2017 at 10:40

Hi Nesrine,

Thank you very much for the quick response. - I know that it is 'only' a warning. But these warnings may hide other important information on the message output.

Is the release of the next version already scheduled?

Regards,

michaeL

michaelkotthaus9
Associate II
Posted on January 20, 2017 at 11:33

What does 'soon' mean? Next week? Next month? In spring?

Right now, I could not find any possibility to fix this issue. (I could use an older MATLAB/Simulink Version, but I cannot for some other reasons.)

I searched for the origin of the warning, but could not find the place where it issued. So, I assume that it is located in precompiled code?

So, I come back to one of my first unanswered question:

Where is the code located, which generates these warnings?

Posted on January 20, 2017 at 10:51

Hi

Kotthaus.Michael

,

The next version will be available soon

-Nesrine-

Posted on January 20, 2017 at 11:53

Hi

Kotthaus.Michael

,

Please be patient when I could get some updated info about the exact date.Sorry for the inconvenience it may bring.

-Nesrine-

Posted on January 20, 2017 at 13:44

Thank you,

ELMHIRI.Syrine

. So, I will wait, though I thought I could suppress these warnings somehow preliminary.

michaelkotthaus9
Associate II
Posted on February 03, 2017 at 18:17

Hi

ELMHIRI.Syrine

‌,

the other day I just saw that the new Version STM32MatTarget 4.4.1 blocks is available.

The warnings are gone. Thank you.

Have a nice Weekend.

michaeL

Posted on February 06, 2017 at 09:50

Hi

Kotthaus.Michael

,

It is good to hear that the issue is solved with the new version. Thank you very much for your contribution to the enhancement of our STM32 related solutions.

-Nesrine-