Page 1 of 1

Discrete State Space System

Posted: Tue Nov 09, 2010 1:57 pm
by npascher
Hey all,

I have got another problem using the "Discrete State Space System" Block. When I try to compile the scicos diagram I retrieve the following error:

Code: Select all

...Using F:\Programme\Microchip\MPLAB C30
MAKE_DIRECTORIES (after a clean)

CP crt0.s
cc -E  frommchp/crt0.S > frommchp/crt0.s
ASM   crt0.s
CP p33FJ256MC710.h
GEN ee_pic30regs.h
CPP   eecfg.c
CPP   dspic_main.c
CPP   common.c
f:\Daten\Scilab\SUPERB~1\common.c:52: error: syntax error before 'size'
f:\Daten\Scilab\SUPERB~1\common.c: In function 'scicos_malloc':
f:\Daten\Scilab\SUPERB~1\common.c:54: warning: implicit declaration of function 'malloc'
f:\Daten\Scilab\SUPERB~1\common.c:54: warning: incompatible implicit declaration  of built-in function 'malloc'
f:\Daten\Scilab\SUPERB~1\common.c:54: error: 'size' undeclared (first use in this function)
f:\Daten\Scilab\SUPERB~1\common.c:54: error: (Each undeclared identifier is reported only once
f:\Daten\Scilab\SUPERB~1\common.c:54: error: for each function it appears in.)
f:\Daten\Scilab\SUPERB~1\common.c: In function 'scicos_free':
f:\Daten\Scilab\SUPERB~1\common.c:59: warning: implicit declaration of function 'free'
make: *** [obj/common.o] Error 1

I'm using scicoslab_pack_9_3 with scicoslab44b7 and EE1.51 with the nightly build 1.5.1.201011091023.

Would be thankfully for any support

Niko

Re: Discrete State Space System

Posted: Mon Nov 22, 2010 12:21 pm
by paolo.gai
Hi Niko,

all blocks were tried the first time we inserted them. Probably the block has not been tested for a while, and it currently does not work.

For this reason, we are trying to make a regression test suite working to be sure that at least all examples compile without problems.

Could you please send us a reduced version of the diagram, so that I can add a regression test on that diagram? Once we have a failing test, we can try to make it working in the best way possible, and maintaining the test there will make sure the system will continue to compile in future releases.

Thanks!

PJ

Re: Discrete State Space System

Posted: Wed Nov 24, 2010 5:22 pm
by npascher
Hi Paolo,

I will send you an email with my files (diagram and context).


Kind Regards

Niko

Re: Discrete State Space System

Posted: Wed Nov 24, 2010 5:32 pm
by paolo.gai
Thanks Nikolas!

I received the diagram, and we'll look at it as soon as possible!

Pj

Re: Discrete State Space System

Posted: Mon Jan 10, 2011 6:08 pm
by paolo.gai
We just posted an update of the ERIKA plugins which solves this issue. Please give it a try!

Ciao,

Paolo

Re: Discrete State Space System

Posted: Mon Jan 17, 2011 12:36 pm
by npascher
Dear Paolo,

with the update it compiles correctly. Thank you and the whole team!

Ciao,

Niko

Re: Discrete State Space System

Posted: Wed Dec 10, 2014 11:49 am
by kimrody
I examine your post, but i think that there should be more talk about the threat that have initial started, so that the reasonable amount of data'll be available for decision, However, Nice post to talk about, well i like this. Regards

Re: Discrete State Space System

Posted: Wed Dec 10, 2014 4:34 pm
by paolo.gai
I guess this is related to an old post of the Scicos pack. The mallocs have been removed since a while... Not sure if it applies anymore.

Ciao,
PJ