Zurück zu Willert.de

Multiple classes in same active context

Questions about the usage and configuration of the RXF

Multiple classes in same active context

Postby lgasser » September 25th, 2013, 8:19 am

I'm working with Rhapsody 8.0.1 and RXF for Freescale MQX 4.0.

I've got some classes which are involved in a specific Job which is the main functionality of the product and has to be high priority.
An interrupt triggers the first statemachine which then executes callbacks to classes in the application layer. Such a callback fires an event to that particular registered object and triggers its statemachine.

Now how can I achieve to run all involved statemachines in the same high priority context?

Lukas
lgasser
 
Posts: 2
Joined: September 25th, 2013, 7:57 am

Re: Multiple classes in same active context

Postby czoeller » September 25th, 2013, 4:56 pm

Hello Lukas,

since you want a high priority treatment of the statemachines you have to make parts of the classes you want to trigger. By using parts the message queue of the HighPriority task is used with the parts. Hence the statecharts of the parts benefit from the higher priority.

Kind Regards
Christian Zöller
Attachments
Bildschirmfoto 2013-09-25 um 16.44.43.png
Bildschirmfoto 2013-09-25 um 16.44.43.png (44.4 KiB) Viewed 19983 times
User avatar
czoeller
 
Posts: 3
Joined: August 10th, 2011, 4:40 pm
Company: Willert Software Tools GmbH

Re: Multiple classes in same active context

Postby lgasser » September 27th, 2013, 4:07 pm

Thank you very much, that solution did the trick!
lgasser
 
Posts: 2
Joined: September 25th, 2013, 7:57 am


Return to RXF

Who is online

Users browsing this forum: No registered users and 1 guest

cron