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 CT > Container Terminal (CT) Library
Downloads

  #1  
Old 12-14-2011
Shahin Gelareh Shahin Gelareh is offline
Postdoctoral Researcher
 
Join Date: Sep 2011
Location: Polytech'Lille, France
Posts: 100
Downloads: 93
Uploads: 0
Thanks: 46
Thanked 3 Times in 3 Posts
Rep Power: 112
Shahin Gelareh is on a distinguished road
Default message never received from network node to quay crane

Hi everybody,

I send a mesage from OnArrival of a NetworkNode to a Quay crane which is connected to it as follows:
sendmessage(node("/GantryCrane1", model()),current,8);

then in messagetrigger of the QuayCrane I use the following functions:

pt( getname(msgsendingobject));
or
pt(getname(parnode(1)));
or
msgparam(1)
to print something to console but I get nothing. While it seems that "messagetrigger " is frequently called (because the window scrolbar is moving up and down quickly during the run) but the print command in it is not ran.


SO how to receive that message inside the quay crane to ask the quay crane to let say stay IDLE for certain time until another transporter arrives.

any comment aprpeciated.
  #2  
Old 12-15-2011
Juan Segui Juan Segui is offline
Flexsim User
 
Join Date: Apr 2010
Posts: 16
Downloads: 4
Uploads: 0
Thanks: 0
Thanked 6 Times in 6 Posts
Rep Power: 126
Juan Segui is on a distinguished road
Default Message

Shahin,

It seems strange the error you have reported. Try one of this solutions:

1) Have you checked that node("/GantryCrane1", model()) exists??

2) Have you got the OnMessage Code at the Crane's OnMessage Trigger??

3) Is the Crane connected to the network??

Good luck!
The Following User Says Thank You to Juan Segui For This Useful Post:
Shahin Gelareh (12-15-2011)
  #3  
Old 12-15-2011
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 Shahin,

I think you have written in your code:
pt(getname(msgsendingobject()));

and you have left the brackets only here.

Further on have checked if the on arrival-trigger is fired.

Jörg

Last edited by Jörg Vogel; 12-15-2011 at 10:39 AM. Reason: another idea
The Following User Says Thank You to Jörg Vogel For This Useful Post:
Shahin Gelareh (12-15-2011)
  #4  
Old 12-15-2011
Shahin Gelareh Shahin Gelareh is offline
Postdoctoral Researcher
 
Join Date: Sep 2011
Location: Polytech'Lille, France
Posts: 100
Downloads: 93
Uploads: 0
Thanks: 46
Thanked 3 Times in 3 Posts
Rep Power: 112
Shahin Gelareh is on a distinguished road
Default

Hello Jörg,

Thank you for your comment.
in the tree edit windows there a trigger called "messagetrigger" (I havnt seen OnMessage anywhere) and inside that I leave just a normal simple pt("hello");pr(); but even that does not appear in the output console.
In fact this is a Quay crane not a Gantry --- sorry for my mistake.

the braces i added also did not solve the issue.
regards,
  #5  
Old 12-15-2011
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

You need to toggle the node as Flexscript and build Flexscript after editing it from the tree.

Also, you aren't going to be able to do what you are trying to do by sending the quay crane a message.

The task sequences in CT are complicated coordinated task sequences created by the CT dll based on the information you specify in the Planners. You do not have direct control over what happens with the objects like you do in regular Flexsim. Flexsim CT trades flexibility for simplicity.
The Following User Says Thank You to Phil BoBo For This Useful Post:
Shahin Gelareh (12-15-2011)


Thread Thread Starter Forum Replies Last Post
Network Node Error Ryan Haferbecker Q&A 2 11-24-2010 12:05 PM
Network node TreeView shafizad Q&A 5 08-25-2010 04:33 AM
How to color network node Nico Zahn Q&A 5 05-25-2010 07:04 AM
Is it possible to let quay crane load two container at same time? zhang xin Container Terminal (CT) Library 3 12-14-2009 09:32 AM
Release from Network Node Gavin Douglas Q&A 2 06-12-2008 12:39 PM


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.