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 06-02-2016
vivek dubey vivek dubey is offline
Flexsim User
 
Join Date: Mar 2014
Posts: 4
Downloads: 23
Uploads: 0
Thanks: 14
Thanked 0 Times in 0 Posts
Rep Power: 0
vivek dubey is on a distinguished road
Default Separator flow query. Need help !

Please find model attached. The separator in themodel refers the table created - "split_table" &splits the flow item of 146 into 3 parts in batches of 46, 46 & 34
Now my requirement is after dividinginto 3 parts the 1st two batches should go to port 1 ( i.eQ1- queue as their value is 46) & the 3rd part ( 34 value) should go to Q2 because its valueis less than 46.
I tried by two ways – one by writing a code in the flow tab of separator but the value of “x” variable is notincrementing don’t know why ?
2nd way– If I can give itemtype values to thedivided 3 parts as per the same table (2nd row values), then I can use “Byexpression” in theflow tab of separator to send it to 4 queues & later take my 34 valuebox out from 4th queue.
Or any other alternative kindlysuggest.
All I am trying to do is after dividing I want to separate the lastflow item whose value is less than 46 from remaining ones using the globaltable Row-1 & Column-4


Regards,
Vivek
Attached Files
File Type: fsm separator query.fsm (16.0 KB, 487 views)
  #2  
Old 06-03-2016
Jing Chen
Guest
 
Posts: n/a
Downloads: 2
Uploads: 0
Default

I'm not quite sure what you want. I think maybe your thought was too complicate to edit the code.
I try to change the Table "split_table" and reedit sendtoport trigger in Separator.
Hope it helps~
Attached Files
File Type: fsm separator query_JingV7.5.fsm (15.9 KB, 445 views)
  #3  
Old 06-04-2016
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

A separator has its own flow method. Maybe you transfer the sorting to a simpler object like a queue. If the model work, you can hide the sorting queue later.
Jörg
The Following User Says Thank You to Jörg Vogel For This Useful Post:
vivek dubey (06-24-2016)


Thread Thread Starter Forum Replies Last Post
Separator flow query. Please help !! vivek dubey Q&A 0 06-02-2016 01:20 AM
Is it possible to do an SQL query with WHERE X > Y where the referenced table contains string data? Axel Kohonen Q&A 7 02-22-2016 12:06 AM
model related query mohanboyapati Q&A 0 10-11-2009 07:32 PM
Query regarding operator shivrash Q&A 1 07-21-2009 04:53 AM
Error: Cannot find the input table or query 'Objects'. AlanZhang Q&A 8 05-04-2008 07:06 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.