Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » APP4MC » [Model Semantics] OsEvents - Counter in {Set|Clear}Event
[Model Semantics] OsEvents - Counter in {Set|Clear}Event [message #1827491] Fri, 15 May 2020 16:40 Go to next message
Benjamin Beichler is currently offline Benjamin BeichlerFriend
Messages: 4
Registered: April 2020
Junior Member
What is the aim and meaning of the Counter of SetEvent and ClearEvent? Should it be possible to recognize multiple SetEvents? Should WaitEvent directly return if the Counter > 0 and decrement the Counter?

This OSEK Spec ( do not say anything about a counter.

If the meaning is clear, please also put it into the Model Description.

[Updated on: Fri, 15 May 2020 16:40]

Report message to a moderator

Re: [Model Semantics] OsEvents - Counter in {Set|Clear}Event [message #1827776 is a reply to message #1827491] Sat, 23 May 2020 10:48 Go to previous message
Harald Mackamul is currently offline Harald MackamulFriend
Messages: 15
Registered: November 2016
Junior Member
Counters are used several times in the AMALTHEA meta model. The meaning is always the same:

The Counter element describes an activation of a target element that happens only every n-th time.

prescaler Gives the number n for the activation, e.g. if set to 2, the target element is executed every second time.
offset Initial shift for the first execution of the target.

If for example prescaler is 5 and offset is 2 it is executed on the 2nd, 7th, 12th, ... time.

See APP4MC help > Data Models > Model Basics > Counters
Previous Topic:[Model Semantics] Activate Event of Tasks with multipleTaskActivationLimit > 1
Next Topic:[Model Semantics] how dataRates relate to frequency domain
Goto Forum:

Current Time: Fri Dec 01 16:01:15 GMT 2023

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

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

Back to the top