Skip to main content


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 10:40 Go to next message
Stefan St is currently offline Stefan StFriend
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 14:51 Go to previous messageGo to next message
Henrik Rentz-Reichert is currently offline Henrik Rentz-ReichertFriend
Messages: 261
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 15:46 Go to previous messageGo to next message
Thomas Schuetz is currently offline Thomas SchuetzFriend
Messages: 31
Registered: January 2010
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 15:49 Go to previous messageGo to next message
Thomas Schuetz is currently offline Thomas SchuetzFriend
Messages: 31
Registered: January 2010
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 14:12 Go to previous message
Stefan St is currently offline Stefan StFriend
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: Thu Apr 25 17:54:22 GMT 2024

Powered by FUDForum. Page generated in 0.03374 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top