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 09-29-2009
Jamie Santa Ana Jamie Santa Ana is offline
Flexsim User
 
Join Date: Jul 2009
Location: Southern California
Posts: 44
Downloads: 22
Uploads: 0
Thanks: 25
Thanked 4 Times in 4 Posts
Rep Power: 135
Jamie Santa Ana is on a distinguished road
Default Record Staytime

I'm trying to set up a table that records the staytime of a truck. I'd like to get the time it takes a truck to drive through a gate road and go through a processor. I'm having trouble trying to set a label on a truck. In the OnEntry trigger of the gate road, i'd input setlabelnum(item, "start_time", time). I don't think it works if I use "item" as the object. Can someone help me with the code?

Thanks.
  #2  
Old 09-29-2009
Jamie Santa Ana Jamie Santa Ana is offline
Flexsim User
 
Join Date: Jul 2009
Location: Southern California
Posts: 44
Downloads: 22
Uploads: 0
Thanks: 25
Thanked 4 Times in 4 Posts
Rep Power: 135
Jamie Santa Ana is on a distinguished road
Default

I got it to work. After doing a more thorough search on the forum , I found that I needed to add the label to the flow item in the flow item bin. Then that enabled me to set a label to the item.

Thanks


Thread Thread Starter Forum Replies Last Post
Record object variance staytime Vic Li Q&A 8 12-22-2010 11:01 AM
Dispatcher and staytime problem Lin Jincong Q&A 2 01-15-2009 08:35 PM
How to turn on stats history in Vista to use Record object syseo Q&A 1 09-22-2007 01:45 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.