Home » Eclipse Projects » Papyrus for Real Time » Unable to add log port in the middle of the capsule
Unable to add log port in the middle of the capsule [message #1794301] |
Tue, 28 August 2018 11:30  |
Eclipse User |
|
|
|
Hello everyone,
I just started using Papyrus-RT and I tried to follow this tutorial: https://wiki.eclipse.org/Papyrus-RT/User/User_Guide/Getting_Started, however I have encountered 2 problems:
1) I cannot add log port inside the capsule diagram.
In the tutorial under chapter Add a log port it says:
"Select the Port tool and create a port in the middle of the capsule
In the resulting dialog, select the "Log" entry"
As you can see from the picture attached "PRT_log" I do not have such an option.
2) I cannot add statemachine diagram inside the PRT_adding_statemachine_to_capsule . Under section Create Pinger's state machine it is stated:
"Right-click on the Pinger capsule in the Model Explorer and select "New UML-RT Child > StateMachine" to create the state machine."
When I right-click on the Pinger capsule, there is no option "New UML-RT Child", as you can see from the picture "PRT_adding_statemachine_to_capsule" attached.
I am using Win10, 64-bit. I have attached photo with Papyrus-RT plugins that are installed ("PRT_version").
Thank you in advance.
Ivan
|
|
| | | | |
Re: Unable to add log port in the middle of the capsule [message #1794312 is a reply to message #1794311] |
Tue, 28 August 2018 15:23   |
Eclipse User |
|
|
|
The downloads page at at https://www.eclipse.org/papyrus-rt/content/download.php shows four different options:
1) All-in-one RCP
2) The Papyrus-RT installer
3) The Eclipse installer
4) Manual installation.
The all-in-one RCP is, as the name says, all in one: you do not install it on top of an existing Eclipse install as an update site, you just unzip it and execute it (in Windows you will see an executable file in the folder extracted) and it comes with all dependencies.
The "Install New Software..." option is only when you use update sites explicitly. The RCP is not an update site, but a self contained application. That is different from the Eclipse installer, the Papyrus-RT installer or update sites. Therefore, you do not have to use the "Install New Software..." option to install Papyrus-RT if you downloaded the RCP.
Like I said in my previous message, I strongly recommend installing the RCP, and not from an update site if you are not very familiar with installing Eclipse plugins and their dependencies. As mentioned in the download page, if you need to install it on top of an existing Eclipse installation from an update site, you will have to manually install dependencies, and this is not trivial.
By the way, the 0.9 appears in that page near the bottom under the title "Older releases". If you read carefully, you'll see the 1.0 version under "Current releases" before the section on older releases.
|
|
| | |
Re: Unable to add log port in the middle of the capsule [message #1794365 is a reply to message #1794357] |
Wed, 29 August 2018 11:25   |
Eclipse User |
|
|
|
Ernesto Posse wrote on Wed, 29 August 2018 14:15The screenshot in "PRT_fsm.png" suggests that in the Model Explorer you are right-clicking the *capsule diagram* element (the yellow icon), rather than the *capsule* element itself (the icon with the <<Capsule>> stereotype). To create elements in a capsule (or any other UML element), you have to select and right-click the UML model element, not the diagram element.
Yes I realized that later on, I edited post ... did not refresh the website so I did not see your post. Anyways I managed to generate the code now. I followed instruction on how to compile and execute code as stated on the link but I am getting error when executing makefile.
Also link doesn't work under:
"Using an OS other than Linux
If you are using an operating system other than Linux, you can still compile and run your model. Go to Compiling and running Papyrus for Real Time applications for alternatives"
Is it possible to compile and execute code inside the papyrus on win10?
I will also try to install papyrus-rt on linux, the screenshot I sent was from Virtual Machine running Ubuntu on it, so I basically generated code on win10 and copy pasted it on VM. I guess problem with executing makefile is due to missing includes from Papyrus-RT libraries.
[Updated on: Wed, 29 August 2018 11:31] by Moderator
|
|
| | | | |
Re: Unable to add log port in the middle of the capsule [message #1794446 is a reply to message #1794444] |
Thu, 30 August 2018 13:15   |
Eclipse User |
|
|
|
Ok, perhaps the instructions are not clear enough, but if you are building under Cygwin, you do not have to build the RTS manually as you seem to be trying to do. Building the RTS explicitly is only for Linux, not for Windows+Cygwin. The instructions at https://wiki.eclipse.org/Papyrus-RT/User_Guide/Compiling_and_running_Papyrus_for_Real_Time_applications under the section Building the runtime system begin with a note that reads:
Quote:Cygwin users
If you are on Windows using the Cygwin setup, skip this section and go directly to Building your applications on Windows with Cygwin
So, you only need to follow the instructions at https://wiki.eclipse.org/Papyrus-RT/User_Guide/Compiling_and_running_Papyrus_for_Real_Time_applications#Building_your_applications_on_Windows_with_Cygwin:
1) open a Cygwin terminal
2) navigate to the generated project
3) create a build folder if it doesn't already exist and move into it
4) type 'cmake ../src'
That's it. The call top cmake will automatically build the RTS and the generated application.
As for the exception in the linux version, that depends on your particular model. The exception reads:
Quote:Unexpected message to capsule instance Top.ponger role ponger on port pongPort protocol PingPongProtocol signal ping
This means precisely that the ponger capsule is in a state where it received a message 'ping' and there where no outgoing transitions from that state that had 'ping' in a trigger. So either you didn't create a transition from that state, or you created and didn't add a trigger or added a trigger and selected the wrong message to trigger the transition.
The exception is not linux-specific. You will get the same exception on Windows, because there the exception indicates a problem with the model, not the generated code.
|
|
| |
Re: Unable to add log port in the middle of the capsule [message #1794667 is a reply to message #1794454] |
Tue, 04 September 2018 12:53  |
Eclipse User |
|
|
|
No, there is no language reference manual for Papyrus-RT. The language is UML-RT, which is essentially the same as ROOM for which there is a prominent reference book. UML-RT is essentially a UML 2.0 profile of ROOM, which inherits a lot of the semantics of UML 2.0 in relation to composite structure diagrams and state machines, but is not exactly the same and includes concepts different from UML 2.0, such as optional and plug-in capsule parts, service ports, port binding detection, and simplified state machines (no OR-states, no shallow history, only deep history). Nevertheless, in spite of these difference, the official OMG UML 2.x spec can be used as a reference.
|
|
|
Goto Forum:
Current Time: Tue May 20 13:00:09 EDT 2025
Powered by FUDForum. Page generated in 0.09826 seconds
|