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

  #21  
Old 06-05-2012
Jens Mühlheimer Jens Mühlheimer is offline
Flexsim User
 
Join Date: Jul 2008
Location: Stuttgart, Germany
Posts: 140
Downloads: 8
Uploads: 0
Thanks: 40
Thanked 35 Times in 27 Posts
Rep Power: 174
Jens Mühlheimer will become famous soon enoughJens Mühlheimer will become famous soon enough
Default

It'll get complicated here. Because you're using the OnExit trigger, you can only write data to one FlowItem at that time. So you have to come up with a logic that knows which sub-part is currently leaving the seperator. You could realize this by incrementing a label (on the seperator itself).

That means after the first sub-part, the label has to have value 1. Your OnExit trigger now has to have a functionality that looks through your rows, skips the first "search result" (where it refers to the current counter value), takes the information from the next row of the PlateNr., assignes the info to the FlowItem's labels, increments the count label on the seperator, skips the first two "search results" in the next run, increments the label, .... and so on until all sub-parts have been processed. Then the count label should be reset to zero until the next FlowItem comes and will be split in sup-parts.

Good luck :-)

// Oh .. should have refreshed my browser. Steven's post is quite what I also wanted to point out
The Following User Says Thank You to Jens Mühlheimer For This Useful Post:
jasonjj (06-05-2012)
  #22  
Old 06-05-2012
jasonjj jasonjj is offline
Flexsim User
 
Join Date: May 2012
Location: Netherlands
Posts: 23
Downloads: 5
Uploads: 0
Thanks: 13
Thanked 0 Times in 0 Posts
Rep Power: 98
jasonjj is on a distinguished road
Default

Ah.. it looks working now ! thanks both of you .. hope i can do rest of the work now.


Thread Thread Starter Forum Replies Last Post
how to get the last item in separator? oliver xie Q&A 6 10-28-2011 08:20 AM
Simple Separator Question Anthony Timmiss Q&A 1 01-25-2010 08:22 AM
o(Separator, current).v_unpack Dane Lee Q&A 2 08-05-2009 02:29 PM
Problem about Separator wutian Q&A 8 06-18-2008 11:58 PM
[Suggestion] multi tasking combiner/ separator KelvinHo Gripes and Goodies 0 05-20-2008 06:48 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.