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
Downloads

Q&A Using Flexsim and building models

  #1  
Old 01-07-2008
mallik mallik is offline
Flexsim User
 
Join Date: Dec 2007
Posts: 11
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 150
mallik is on a distinguished road
Default Entry trigger

Dear All,

I have taken a small problem like this.

Source -à Queue1 -à Queue2 -à Processor -à Rack

I have used the on entry trigger as follows.

‘If “content (current) > 2” then “close input” ports of the “current” objects

My aim was to limit the quantity in the queue2 to 2. But the quantity is going-on increasing up-to the maximum level defined. I want to know where the problem was. Help me.
(Of course, another way is to declare the maximum content as 2 in the parameters window directly)
  #2  
Old 01-08-2008
Cliff King's Avatar
Cliff King Cliff King is offline
Vice President Technical Services
 
Join Date: Jul 2007
Location: Utah
Posts: 272
Downloads: 158
Uploads: 14
Thanks: 102
Thanked 304 Times in 110 Posts
Rep Power: 412
Cliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud of
Default

With an OnEntry trigger on Queue2 as you specified, the flow will be permanently blocked as soon as a flowitem enters and the content becomes greater than 2 (e.g. there are already 2 flowitems in the queue). I'm not sure why your flow continues... Something else must be enfluencing your model. Are you using the current version of Flexsim (v4.01)?

To achieve the same result as changing the Maximum Content field of Queue2 to 2, you would need to define an OnEntry, OnExit and OnMessage trigger on Queue2 as shown below. As the Flexsim help warns, you should never open ports in an entry or exit trigger. It is better to send a delayed message in zero seconds and then open the ports. This allows the flowitem that trips the trigger to settle into its destination object and applicable statistics to first update.

OnEntry: if(content(current) >= 2) closeinput(current);

OnExit: if(content(current) <= 2) senddelayedmessage(current);

OnMessage: openinput(current);
  #3  
Old 01-13-2008
mallik mallik is offline
Flexsim User
 
Join Date: Dec 2007
Posts: 11
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 150
mallik is on a distinguished road
Default

Dear Sir,

Thank you for your reply.
I have Flexsim 3 licenced version in my institution. So I am using the same.
CanI download the version 4 directly from internet?

Regards,
Mallik.
  #4  
Old 01-14-2008
Cliff King's Avatar
Cliff King Cliff King is offline
Vice President Technical Services
 
Join Date: Jul 2007
Location: Utah
Posts: 272
Downloads: 158
Uploads: 14
Thanks: 102
Thanked 304 Times in 110 Posts
Rep Power: 412
Cliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud of
Default

The latest version of the software is always available free of charge to users current on their maintenance agreement with Flexsim. The software can be downloaded from https://account.flexsim.com/downloads after logging in with the User Name and User Code that are associated with the active license.
  #5  
Old 01-25-2008
mallik mallik is offline
Flexsim User
 
Join Date: Dec 2007
Posts: 11
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 150
mallik is on a distinguished road
Default

Dear Sir,

I have tried many times to use send msg option in the above problem. But still I didn't get that.

I could download Flexsim4 but it is not getting installed even Flexsim3 is working good on my computer.

Your suggestions please.


Thread Thread Starter Forum Replies Last Post
On Message Trigger Anthony Timmiss Q&A 19 08-13-2008 08:20 AM
manual entry danieldiep Q&A 5 11-26-2007 06:11 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.