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 > Q&A
FAQ Downloads Calendar Search Mark Forums Read

Q&A Using Flexsim and building models

Reply
 
Thread Tools Display Modes
  #1  
Old 08-12-2012
Liang Wen Yin's Avatar
Liang Wen Yin Liang Wen Yin is offline
Flexsim User
 
Join Date: Aug 2012
Posts: 15
Downloads: 2
Uploads: 0
Thanks: 4
Thanked 1 Time in 1 Post
Rep Power: 91
Liang Wen Yin is on a distinguished road
Default Coding problem

Hai, I have faced with some problem in my model. I have write the coding in send to port tab of the source queue but it seems like doesn't work well. For the first 3 ranking of itemtype2, the items will send to the processor based on the ranking, but after that, it will stuck at the source queue. It also happend to the itemtypes 1.

Can you please help me out? Is it there have problem with my coding?
If I'm not clear in explanation, please let me know. Thank you.

URGENT...

Best Regards;
Liang Wen Yin
Attached Thumbnails
Click image for larger version

Name:	problem.jpg
Views:	141
Size:	16.3 KB
ID:	1895  
Attached Files
File Type: fsm Concept.fsm (138.7 KB, 99 views)
Reply With Quote
  #2  
Old 08-13-2012
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 769
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

Try having your logic in one place rather than the sendto, pull strategy and pull requirement.
Reply With Quote
The Following 2 Users Say Thank You to Jason Lightfoot For This Useful Post:
Carsten Seehafer (08-13-2012), Liang Wen Yin (08-13-2012)
  #3  
Old 08-13-2012
Liang Wen Yin's Avatar
Liang Wen Yin Liang Wen Yin is offline
Flexsim User
 
Join Date: Aug 2012
Posts: 15
Downloads: 2
Uploads: 0
Thanks: 4
Thanked 1 Time in 1 Post
Rep Power: 91
Liang Wen Yin is on a distinguished road
Default

Dear Jason Lightfoot,

Thanks for your advice. I have clear up the unnecessary code in my model. My model are run well initially, but after the itemtypes2 attain ranking no.281 , the items would not send out again & stuck on the source queue. This also happened to the itemtypes3 as shown in the figure that I attached. For itemtypes1, it can run well. Can you please assist me?

Thanks.

Best Regards,
Liang Wen Yin
Attached Thumbnails
Click image for larger version

Name:	Figure.jpg
Views:	127
Size:	20.1 KB
ID:	1898  
Attached Files
File Type: fsm Lattest Model.fsm (137.9 KB, 82 views)
Reply With Quote
  #4  
Old 08-13-2012
Liang Wen Yin's Avatar
Liang Wen Yin Liang Wen Yin is offline
Flexsim User
 
Join Date: Aug 2012
Posts: 15
Downloads: 2
Uploads: 0
Thanks: 4
Thanked 1 Time in 1 Post
Rep Power: 91
Liang Wen Yin is on a distinguished road
Default

Hai, I solved my problem already.
Reply With Quote
The Following User Says Thank You to Liang Wen Yin For This Useful Post:
Jason Lightfoot (08-13-2012)
  #5  
Old 08-13-2012
Liang Wen Yin's Avatar
Liang Wen Yin Liang Wen Yin is offline
Flexsim User
 
Join Date: Aug 2012
Posts: 15
Downloads: 2
Uploads: 0
Thanks: 4
Thanked 1 Time in 1 Post
Rep Power: 91
Liang Wen Yin is on a distinguished road
Default

Hello, everyone.

What are the code that should I write so that the operator will not carry one item only to the processor queue if there have consecutive ranking of items. Example, at the source queue there already have items with ranking no2, no3 and no4, the operator should carry theses three items all at once.

Thanks.
Liang Wen Yin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions on coding Jack Lai Q&A 6 02-07-2012 12:04 AM
Need help for coding on lifts. chrisquek Q&A 5 11-25-2008 03:00 AM
A pitfall in Flexsim coding AlanZhang Gripes and Goodies 7 05-16-2008 03:37 PM


All times are GMT -6. The time now is 12:13 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.