Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » eTrice » multiple Tasks(split a model into several tasks)
multiple Tasks [message #1011331] Tue, 19 February 2013 05:40 Go to next message
Stefan St is currently offline Stefan St
Messages: 5
Registered: February 2013
Junior Member
Hi,

Usually, I'm using several tasks to manage different processes at the same time. I now want to get a similar structure in an eTrice model, but I have no idea how to do that. I guess I have to change modellib to support the scheduling issues. But how to I tell eTrice to start a state machine in a different task?

Is there anybody who has already worked with different tasks in eTrice?

BTW, I'm using Keil Real Time Library.

thanks,
Stefan Rolling Eyes
Re: multiple Tasks [message #1011429 is a reply to message #1011331] Tue, 19 February 2013 09:51 Go to previous messageGo to next message
Henrik Rentz-Reichert is currently offline Henrik Rentz-Reichert
Messages: 212
Registered: July 2009
Senior Member
Hi Stefan,

currently we only support single threaded systems.
But we are working on a solution for multi-threading.

We already created a physical and a mapping model to support deployment.
We also have implemented code generation and a first solution for MinGW under Windows.
But it will probably take another 2 or 3 month until the solution will be ready to use.
But even then it would require to do a (presumably simple) port to the concrete hardware and compiler.

Kind regards,
Henrik

Am 19.02.2013 11:40, schrieb Stefan St:
> Hi,
>
> Usually, I'm using several tasks to manage different processes at the same time. I now want to get a similar structure in an
> eTrice model, but I have no idea how to do that. I guess I have to change modellib to support the scheduling issues. But how to I
> tell eTrice to start a state machine in a different task?
>
> Is there anybody who has already worked with different tasks in eTrice?
>
> BTW, I'm using Keil Real Time Library.
>
> thanks,
> Stefan :roll:
Re: multiple Tasks [message #1011468 is a reply to message #1011331] Tue, 19 February 2013 10:46 Go to previous messageGo to next message
Thomas Schuetz is currently offline Thomas Schuetz
Messages: 16
Registered: January 2010
Junior Member
Hi Stefan,
here some more detailed information about the new physical and mapping models:
We are developing these new features currently at the branch CGenPhysical (http://git.eclipse.org/c/etrice/org.eclipse.etrice.git/log/?h=CGenPhysical).

Features:
- new API for C runtime (posix like) for simpler portability and support for multi- and single threading (e.g. without operating system) with the same API
- PhysicalModel to model a System with nodes and threads, a LogicalSystem (ROOM model) can be deployed to
- MappingModel that maps elements of the logical to elements physical model
LogicalModel -> PhysicalModel
SubSystem -> Node
LogicalThread (with its actors) -> PhysicalThread
- code generator for C to do all the mapping

Current Status:
- working prototype of most features above
- no datadriven actors yet (only eventdriven)
- not enough tests

Stefan: How is your schedule? When do you need those features?

- Thomas
Re: multiple Tasks [message #1011470 is a reply to message #1011468] Tue, 19 February 2013 10:49 Go to previous messageGo to next message
Thomas Schuetz is currently offline Thomas Schuetz
Messages: 16
Registered: January 2010
Junior Member
... here the reference models we use to develop the features:
http://git.eclipse.org/c/etrice/org.eclipse.etrice.git/tree/examples/org.eclipse.etrice.generator.c.reference/model?h=CGenPhysical
ROOM Model: cGenRef.room
PhysicalModel: cGenRef.etphys
MappingModel: cGenRef.etmap


Thomas
Re: multiple Tasks [message #1011922 is a reply to message #1011470] Wed, 20 February 2013 09:12 Go to previous message
Stefan St is currently offline Stefan St
Messages: 5
Registered: February 2013
Junior Member
Hi,

thank you for your help. In the moment I am in evaluation phase, that means I'm trying a few tools to see which one meets our requirements.

Stefan
Previous Topic:Google Summer of Code 2013
Next Topic:[announce] eTrice 0.3 released
Goto Forum:
  


Current Time: Wed Aug 20 16:46:58 EDT 2014

Powered by FUDForum. Page generated in 0.04172 seconds