Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » loop node example(how to create a loop node with variables?)
loop node example [message #1780838] Mon, 29 January 2018 07:25 Go to next message
Pietro Boido is currently offline Pietro BoidoFriend
Messages: 1
Registered: January 2018
Junior Member
Hi Papyrus users,

I am trying to use a loop node to count down from i to 0 and print the counter at each iteration.

I am not able to make it work, when I add variables. I cannot figure out how to connect the loop variable output pin to the test part and body part input pins. There seems to be no place where I can drop the variable input/output pins, nor the loop result pin.

Also I tried adding a setup part, but it won't execute.

This is my current loop node:

index.php/fa/31941/0/


These are the properties:

index.php/fa/31942/0/

In this state, moka won't execute the node, but no exception is thrown.

If I remove the Body output, Loop variable, Loop variable input and Result from the properties, then the loop will be executed and 9 will be printed at each iteration, until I terminate the simulation.

It would be great if you could post a complete loop node example.

Thanks,
Pietro
Re: loop node example [message #1781299 is a reply to message #1780838] Mon, 05 February 2018 20:01 Go to previous message
Cavan Watson is currently offline Cavan WatsonFriend
Messages: 2
Registered: November 2016
Location: Brighton, East Sussex, UK
Junior Member

Hi

I'm in the same boat, so not likely to be very helpful.

But I'm a little confused by your diagram, I would be expecting something more like this...

index.php/fa/32007/0/

I've searched the documentation to no avail ;-(

Previous Topic:Support for Papyrus in Eclipse Che
Next Topic:Active object execution and stimulation with signals
Goto Forum:
  


Current Time: Thu Apr 25 16:25:20 GMT 2024

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

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

Back to the top