Skip to contentSkip to conversation

Scicos/Xcos Code Generation

Xenomai Markus Valtin 4 participants 10 messages Aug 22, 2012 – Sep 3, 2012

lore
Share & tools
lore
#0 lore raw

Hello all,

i have a question regarding automated code generation from Scilab Xcos/Scicos.

Is this possible? And if yes, how is the necessary setup.

Background:

We currently use RTAI for hard realtime but we want to use recent Kernel versions, so Xenomai with his RTAI skin seamed promising.

However I read that the RTAI emulation was removed from version 2.6.0 because of lack of feedback / lack of LXRT emulation.

So, is there another way like the native Xenomai Support as suggested on
http://www.evidence.eu.com/scilabscicos-code-generator-xenomai.html

Sincerely
Markus

#1 lore raw
Quoted 8 lines · Markus Valtin

Hello all,

i have a question regarding automated code generation from Scilab Xcos/Scicos.

Is this possible? And if yes, how is the necessary setup.

Background:

Quoted 8 lines

We currently use RTAI for hard realtime but we want to use recent Kernel versions, so Xenomai with his RTAI skin seamed promising.

However I read that the RTAI emulation was removed from version 2.6.0 because of lack of feedback / lack of LXRT emulation.

So, is there another way like the native Xenomai Support as suggested on
http://www.evidence.eu.com/scilabscicos-code-generator-xenomai.html

Googling a bit shows that other projects are using scicos with Xenomai:
http://www.scilab-linux.com/
http://rtss.sourceforge.net

I do not know, however, if this is what you are looking for.

You may want to reintegrate an RTAI skin to Xenomai, but in that case, please find someone to maintain it.

It makes probably more sense to simply change the tools to generate xenomai native skin calls instead of RTAI calls.

Also if the tools are able to generate code for Linux, chances are that it is even possible to use the generated code to run with Xenomai posix skin.

Signature · 1 line
                                                                Gilles.
#2 lore raw
Quoted 29 lines · Gilles Chanteperdrix
Quoted 8 lines · Markus Valtin

Hello all,

i have a question regarding automated code generation from Scilab Xcos/Scicos.

Is this possible? And if yes, how is the necessary setup.

Background:

Quoted 8 lines

We currently use RTAI for hard realtime but we want to use recent Kernel versions, so Xenomai with his RTAI skin seamed promising.

However I read that the RTAI emulation was removed from version 2.6.0 because of lack of feedback / lack of LXRT emulation.

So, is there another way like the native Xenomai Support as suggested on
http://www.evidence.eu.com/scilabscicos-code-generator-xenomai.html

Googling a bit shows that other projects are using scicos with Xenomai:
http://www.scilab-linux.com/
http://rtss.sourceforge.net

I do not know, however, if this is what you are looking for.

You may want to reintegrate an RTAI skin to Xenomai, but in that case, please find someone to maintain it.

Quoted 6 lines

It makes probably more sense to simply change the tools to generate xenomai native skin calls instead of RTAI calls.

Also if the tools are able to generate code for Linux, chances are that it is even possible to use the generated code to run with Xenomai posix skin.

And if the code runs in kernel-space, it should use the RTDM skin.

Signature · 1 line
                                                                Gilles.
#3 lore raw

Am Mittwoch, 22. August 2012, 20:59:30 schrieb Gilles Chanteperdrix:

Quoted 1 line · Gilles Chanteperdrix

Thank you for your answer.

Quoted 2 lines
Quoted 2 lines

Googling a bit shows that other projects are using scicos with Xenomai:
http://www.scilab-linux.com/

We like to use an open source solution, but I will have a look at it.

Quoted 1 line
Quoted 1 line

http://rtss.sourceforge.net

They the Xenomai Code Generator from Evidentce from my first post.

I was hoping for some feedback from users of this solution and maybe even some comments from users/developers about recent developments (Port to Xenomia 2.6.1 / Scilab 5 support ...)

Quoted 2 lines
Quoted 2 lines

You may want to reintegrate an RTAI skin to Xenomai, but in that case, please find someone to maintain it.

I was more looking for an easy transition path towards Xenomia / Preempt Linux.

Quoted 8 lines
Quoted 6 lines

It makes probably more sense to simply change the tools to generate xenomai native skin calls instead of RTAI calls.

Also if the tools are able to generate code for Linux, chances are that it is even possible to use the generated code to run with Xenomai posix skin.

And if the code runs in kernel-space, it should use the RTDM skin.

This is the intention.

Like I said, I am looking for people how use Scilab and Xenomia together to get there opinion on where to start.

Sincerely
Markus

#4 lore raw
In reply to Gilles Chanteperdrix
Quoted 20 lines · Gilles Chanteperdrix
Quoted 8 lines · Markus Valtin

Hello all,

i have a question regarding automated code generation from Scilab Xcos/Scicos.

Is this possible? And if yes, how is the necessary setup.

Background:

Quoted 8 lines

We currently use RTAI for hard realtime but we want to use recent Kernel versions, so Xenomai with his RTAI skin seamed promising.

However I read that the RTAI emulation was removed from version 2.6.0 because of lack of feedback / lack of LXRT emulation.

So, is there another way like the native Xenomai Support as suggested on
http://www.evidence.eu.com/scilabscicos-code-generator-xenomai.html

Quoted 8 lines

Googling a bit shows that other projects are using scicos with Xenomai:
http://www.scilab-linux.com/
http://rtss.sourceforge.net

I do not know, however, if this is what you are looking for.

You may want to reintegrate an RTAI skin to Xenomai, but in that case, please find someone to maintain it.

The RTAI skin was removed not only because nobody wanted to maintain it, which was by itself a showstopper, but first and foremost because it was lacking user-space support and nobody in sight having any interest in developing such support, compared to rebasing the code over the native Xenomai API, or moving to POSIX. So this basically meant that we had no upgrade path to the Xenomai 3 architecture for it.

So, I would complete the sentence this way: bottom line for considering any reintegration into Xenomai, would be to find someone to develop from scratch and maintain on the __long term__ a sane implementation of a LXRT-looking API.

Quoted 8 lines

It makes probably more sense to simply change the tools to generate xenomai native skin calls instead of RTAI calls.

Also if the tools are able to generate code for Linux, chances are that it is even possible to use the generated code to run with Xenomai posix skin.

Signature · 1 line
Philippe.
#5 lore raw

Am Mittwoch, 22. August 2012, 23:03:06 schrieb Philippe Gerum:

Quoted 13 lines · Gilles Chanteperdrix
Quoted 4 lines · Markus Valtin

You may want to reintegrate an RTAI skin to Xenomai, but in that case, please find someone to maintain it.

The RTAI skin was removed not only because nobody wanted to maintain it, which was by itself a showstopper, but first and foremost because it was lacking user-space support and nobody in sight having any interest in developing such support, compared to rebasing the code over the native Xenomai API, or moving to POSIX. So this basically meant that we had no upgrade path to the Xenomai 3 architecture for it.

Quoted 4 lines

So, I would complete the sentence this way: bottom line for considering any reintegration into Xenomai, would be to find someone to develop from scratch and maintain on the __long term__ a sane implementation of a LXRT-looking API.

I was not looking for a way to get the RTAI skin back.
I just want to use the tools we have with Xenomia, as easy as possible.

So this is more a post for "user" part of the mailing list.

Sincerely
Markus

#6 lore raw
In reply to Markus Valtin
Quoted 11 lines · Markus Valtin

Hello all,

i have a question regarding automated code generation from Scilab Xcos/Scicos.

Is this possible? And if yes, how is the necessary setup.

Background:

We currently use RTAI for hard realtime but we want to use recent Kernel versions, so Xenomai with his RTAI skin seamed promising.

Quoted 8 lines

However I read that the RTAI emulation was removed from version 2.6.0 because of lack of feedback / lack of LXRT emulation.

So, is there another way like the native Xenomai Support as suggested on
http://www.evidence.eu.com/scilabscicos-code-generator-xenomai.html

From what I understand from this post:

http://www.xenomai.org/pipermail/xenomai-help/2008-09/msg00077.html

This code generator does not use the RTAI skin, but the POSIX skin.

Signature · 1 line
                                                                Gilles.
#7 lore raw

Am Sonntag, 2. September 2012, 16:28:58 schrieb Gilles Chanteperdrix:

Quoted 16 lines · Markus Valtin
Quoted 15 lines

Hello all,

i have a question regarding automated code generation from Scilab Xcos/Scicos.

Is this possible? And if yes, how is the necessary setup.

Background:

We currently use RTAI for hard realtime but we want to use recent Kernel versions, so Xenomai with his RTAI skin seamed promising.

However I read that the RTAI emulation was removed from version 2.6.0 because of lack of feedback / lack of LXRT emulation.

Quoted 7 lines
Quoted 2 lines

So, is there another way like the native Xenomai Support as suggested on
http://www.evidence.eu.com/scilabscicos-code-generator-xenomai.html

From what I understand from this post:
http://www.xenomai.org/pipermail/xenomai-help/2008-09/msg00077.html

This code generator does not use the RTAI skin, but the POSIX skin.

Thank you for your reply.

They do use the POSIX skin and also the outdated Scilab version 4.1.2.

But that might be a starting point. I will keep the list informed.

Sincerely Markus Valtin

#8 lore raw
In reply to Gilles Chanteperdrix

Il 02/09/2012 16:28, Gilles Chanteperdrix ha scritto:

Quoted 16 lines · Markus Valtin
Quoted 15 lines

Hello all,

i have a question regarding automated code generation from Scilab Xcos/Scicos.

Is this possible? And if yes, how is the necessary setup.

Background:

We currently use RTAI for hard realtime but we want to use recent Kernel versions, so Xenomai with his RTAI skin seamed promising.

However I read that the RTAI emulation was removed from version 2.6.0 because of lack of feedback / lack of LXRT emulation.

Quoted 8 lines
Quoted 2 lines

So, is there another way like the native Xenomai Support as suggested on
http://www.evidence.eu.com/scilabscicos-code-generator-xenomai.html

From what I understand from this post:
http://www.xenomai.org/pipermail/xenomai-help/2008-09/msg00077.html

This code generator does not use the RTAI skin, but the POSIX skin.

Hello everybody.

I'm Claudio, the author of the original email.

As you have seen, our web page allows to download the ScicosPack, which works with the Xenomai POSIX skin.

Actually, during the last years, we have not maintained such software, mainly due to the lack of feedback or specific requests from universities or companies. For some recent project based on the x86 platform we have used RTAI + Scicos + Comedi. On our embedded platforms, instead, we usually prefer Xenomai, but we didn't have any request for code generation, yet.

@Markus: can you please give me more details about what you are looking for ? If I've understood, you work at the university. Indeed, we are a spin-off company of the university (Scuola Sant'Anna, Pisa, Italy) and we are very interested in continuing our relationship with research institutions.

Best regards,

Claudio

#9 lore raw

Am Montag, 3. September 2012, 14:05:00 schrieben Sie:

Quoted 2 lines

Il 02/09/2012 16:28, Gilles Chanteperdrix ha scritto:

Quoted 1 line · Markus Valtin

.....

Quoted 6 lines
Quoted 2 lines

This code generator does not use the RTAI skin, but the POSIX skin.

Hello everybody.

I'm Claudio, the author of the original email.

Hello, great to hear from you.

Quoted 2 lines

As you have seen, our web page allows to download the ScicosPack, which works with the Xenomai POSIX skin.

Yes I did that, but haven't had time to try it out yet.

Quoted 6 lines

Actually, during the last years, we have not maintained such software, mainly due to the lack of feedback or specific requests from universities or companies. For some recent project based on the x86 platform we have used RTAI + Scicos + Comedi. On our embedded platforms, instead, we usually prefer Xenomai, but we didn't have any request for code generation, yet.

We also use a RTAI + Scicos + Comedi combination for your projects but for new projects we are looking for more up to date solutions, preferably with the same comfort RTAI / RTAI Lab and xrtailab / qrtailab offers.

Quoted 2 lines

@Markus: can you please give me more details about what you are looking for ?

Sure.

As I said we mainly use RTAI + RTAI Lab + Scicos (Scilab 4.1.2) for experiments where higher update frequencies are required or where jitter is not acceptable.
Examples are:

Teaching
* Inverted Pendulum
http://www.control.tu-berlin.de/File:PR_Grundlagen_Pendel.jpg
* Magnetic Levitation

Research
* Active Vibration Control

    http://www.control.tu-
berlin.de/Active_Vibration_Control_of_a_Light_and_Flexible_Stress_Ribbon_Footbridge_using_Pneumatic_Muscles
  * Various FES (Functional Electrical Stimulation) based  projects
     http://www.control.tu-

berlin.de/Controlled_Functional_Electric_Stimulation_for_Rehabilitation_Purposes

We use the HART Toolbox (hart.sf.net) and own C/C++ functions to interface with various external devices (mostly USB / FTDI) (Linux Kernel driver based).

We appreciate the rapid prototyping with Scicos and the ability to change the variouse block parameters on the fly with xrtailab / qrtailab. (RTnet based interface to RTAILAB).

However we like to be able to use Scilab 5 and newer kernel versions. We also would love the possibility to cross compile your Scicos based code for lets say the the beagle bone and control this software from another PC.

Quoted 4 lines

If I've understood, you work at the university. Indeed, we are a spin-off company of the university (Scuola Sant'Anna, Pisa, Italy) and we are very interested in continuing our relationship with research institutions.

This should be possible, as long as the result is Open Source and we can modify the code to our needs.

Quoted 4 lines

Best regards,

Claudio

Sincerely
Markus Valtin