ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Tips and Tricks
Downloads

Tips and Tricks Share helpful modeling ideas

  #1  
Old 06-16-2015
Paul Wiedeking
Guest
 
Posts: n/a
Downloads: 0
Uploads: 0
Default TE sending message while traveling

Hi,

I'm thinking about a way TEs can send messages while performing a travel task
on a network. I want the TEs to send messages when they arrive at special nodes
along their travel path.

I thought about creating an preempting task sequence in the special nodes'
onArrival trigger with a send message task and assign this sequence to the arriving TE.
But then the arriving TE will stop at the special node, send the message, and continue.
(Or not?) But I want the TE not to stop at the special nodes.
In addition, preempting travel tasks on networks is always tricky as written in
the documentation.

Of course I could let the special node itself send the message in its onArrival
but to have a better mapping to reality I want the TE to send the message.

Does anybody have some ideas how to achieve such a behavior?

Thanks
Paul
  #2  
Old 06-16-2015
Sebastian Hemmann's Avatar
Sebastian Hemmann Sebastian Hemmann is offline
Flexsim User
 
Join Date: Sep 2009
Location: Braunschweig (Germany)
Posts: 439
Downloads: 52
Uploads: 0
Thanks: 472
Thanked 217 Times in 154 Posts
Rep Power: 319
Sebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to behold
Default

Hi,
if the way to insert a "TASKTYPE_SENDMESSAGE" in your Tasksequence between two travel Tasks isn´t a solution, I would send a message from NN´s OnArrival trigger to traveler and send your wanted message from Messagetrigger of your TE (traveler).
If you try out the second way, please be aware of how often the OnArrival Trigger is fired!
__________________
Hemmi
The Following 2 Users Say Thank You to Sebastian Hemmann For This Useful Post:
Paul Wiedeking (06-16-2015)
  #3  
Old 06-16-2015
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 642
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

Hello Paul,

it won't be easy with the standard network, because while the Taskexecuter is off the network, the default network navigator controls the Taskexecuter. Then the navigator creates the kinematics,too. While the Taskexecuter is on the network the kinematics is found in the Taskexecuter himself. But there isn't any trigger in the kinematics, which creates events depending on the distance. You can only send delayed messages to create events. The delaytime can you retrieve with the command getkinematics and the querry type on the node where the current kinematics is written.

Preempting isn't a solution, because the taskexecuter leaves the network he is currently on and then he goes into offset travel. He won't enter the network on the path or edge again. He can only enter the network at network nodes.
Distance depending triggers are not common in flexsim. You can only create time depending events for example with sendmessage commands or tasks. To get a message while the taskexecuter is travelling is quite easy. You let the Task Executer send a delayedmessage and then let him travel. But that is only indirectly a distance depending message or event.

Jörg
  #4  
Old 06-16-2015
Paul Wiedeking
Guest
 
Posts: n/a
Downloads: 0
Uploads: 0
Default

Hi,

thank you both for your answers.

Sebastian, your solution is quite simple and works well.
You really opened my eyes. Somehow, I was always thinking in task sequences
and that I have to send my messages via a task sequence. But of course I can
also do it in the onMessage trigger of the TE.

Joerg, also thanks for your time delayed approach. I will keep it in mind for
similar scenarios.

Thanks again
Paul

Tags
network, send message, task executer, travel task


Thread Thread Starter Forum Replies Last Post
sending items with different contexts sagar bolisetti Flexsim Student Forum 3 02-28-2014 12:21 PM
FlexTips: Sending a Simple Message Markus Cueva FlexSim Media 0 09-04-2013 12:25 PM
how to make a TE "Rotate while traveling" but not turn at ends of network dalin cai Q&A 3 10-19-2011 06:24 PM
sending flowitem according to excel Chieng Kai Seng Q&A 25 08-12-2011 06:17 AM
Sending messages to Flexsim cedric molthoff Q&A 2 03-10-2010 09:48 AM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.