Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Papyrus for Real Time » rtBound signal is not shown in message list(rtBound signal is not shown in message list)
rtBound signal is not shown in message list [message #1763923] Tue, 23 May 2017 03:59 Go to next message
Mojtaba Bagherzadeh is currently offline Mojtaba BagherzadehFriend
Messages: 36
Registered: April 2016
Member
Hi,

I need to set the rtBound message as a trigger, but It is not shown in the message list of a timer or any other protocol. How can I set rtBound for a trigger?

Thanks
Mojtaba
Re: rtBound signal is not shown in message list [message #1763943 is a reply to message #1763923] Tue, 23 May 2017 09:07 Go to previous messageGo to next message
Peter Cigehn is currently offline Peter CigehnFriend
Messages: 49
Registered: September 2014
Member
Hi,

How did you create your model? Did you use the "UML-RT for C++" template when creating the model? Or is this an existing model that was not based on this (or any other) template?

If so, have you set the default action language of the model to "C++"? You can do that in the properties view on the root element of the model, in the UML-RT sub-tab "Language". When you have done this, then the UML-RT run-time model library (UMLRT-RTS) library is being loaded and makes the rtBound and rtUnbound protocol messages available for selection when creating a trigger.

Keep in mind also that the "Is Notfication" property needs to be enabled on the port to ensure that the rtBound and rtUnbound notifications are generated for that specific port during run-time.

And finally, although this might be obvious, keep also in mind that SAP ports based on system protocols from the run-time model library, e.g. Log, Timing, Frame, does not have the rtBound and rtUnbound (and neither can you set the "Is Notification" property), since system ports are by definition always bound. So for these types of ports you will never see rtBound and rtUnbound protocol messages when creating a trigger (which in practice only is made for the timeout protocol message for Timing ports).

Hope this helps,

/Peter Cigéhn
Re: rtBound signal is not shown in message list [message #1763965 is a reply to message #1763943] Tue, 23 May 2017 12:53 Go to previous messageGo to next message
Mojtaba Bagherzadeh is currently offline Mojtaba BagherzadehFriend
Messages: 36
Registered: April 2016
Member
Hi Peter,
Thanks a lot, setting the language fixed the problem.

Thanks
Mojtaba
Re: rtBound signal is not shown in message list [message #1764022 is a reply to message #1763965] Wed, 24 May 2017 07:31 Go to previous message
Peter Cigehn is currently offline Peter CigehnFriend
Messages: 49
Registered: September 2014
Member
Mojtaba Bagherzadeh wrote on Tue, 23 May 2017 12:53
Thanks a lot, setting the language fixed the problem.


Good! Keep in mind also that the default language for the model also controls the behavior of the code snippet view where you enter the action code. The code snippet view ensures that the opaque behaviors for transition effect, entry and exit for states, and opaque expressions for guards, have the correct language set based on the default language for the model (something that you as a user really should not have to bother about).

So the default language setting is pretty fundamental for several tooling aspects, not only for ensuring that rtBound/rtUnbound are available for selection when creating a transition trigger.

So the tip is that for any new models that you create with 0.9, always use the "UML-RT for C++" template, since then you get the default language set to C++ "automagically".

/Peter Cigéhn
Previous Topic:Importing type from header file
Next Topic:Installing PapyrusRT using update site fails
Goto Forum:
  


Current Time: Sat Nov 17 04:13:09 GMT 2018

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

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

Back to the top