Skip to main content
michaelkotthaus9
Associate III
January 19, 2017
Solved

MATLAB/Simulink STM32MatTarget blocks generate warnings regarding NARGCHK function

  • January 19, 2017
  • 4 replies
  • 2106 views
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
This topic has been closed for replies.
Best answer by Nesrine M_O
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.

 

4 replies

Nesrine M_O
Associate
January 20, 2017
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 III
January 20, 2017
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

Nesrine M_O
Associate
January 20, 2017
Posted on January 20, 2017 at 10:51

Hi

Kotthaus.Michael

,

The next version will be available soon

-Nesrine-

michaelkotthaus9
Associate III
January 20, 2017
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?

Nesrine M_O
Associate
January 20, 2017
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-

michaelkotthaus9
Associate III
January 20, 2017
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 III
February 3, 2017
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

Nesrine M_O
Associate
February 6, 2017
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-