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 03-07-2013
Gavin Douglas Gavin Douglas is offline
Flexsim User
 
Join Date: Feb 2008
Posts: 65
Downloads: 1
Uploads: 0
Thanks: 27
Thanked 1 Time in 1 Post
Rep Power: 152
Gavin Douglas is on a distinguished road
Default Counting Flow Items

I was wondering if I could count the number of flow items being “packed” onto a pallet when the combiner is still collecting items. I tried to put a counter on the “on entry” trigger all doing something like: if (port==2) counter++; however this is yielding strange results. Of course I could wait until the process is finished and just do: content (item). However, this doesn’t really help me. Any help? Thanks?
__________________
"A bird is an instrument working according to mathematical law, which is within the capacity of man to reproduce." -Leonardo da Vinci, 1502
  #2  
Old 03-07-2013
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: 773
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

You can just use getvarnum(<combinerobject>, "currentcomponentsum") for the current pallet.

For all items you should be able to increment your counter when port>1.
The Following User Says Thank You to Jason Lightfoot For This Useful Post:
Gavin Douglas (03-08-2013)


Thread Thread Starter Forum Replies Last Post
Flow Items imported shape don't appear on other computers Ayoub EL BOUCHTILI Flexsim Student Forum 1 02-25-2013 07:17 PM
Indexnum of 3d shape flow items shashanktrivedi Q&A 2 04-25-2011 04:51 AM
Recycling Flow Items Joe Allen Q&A 1 09-16-2008 03:57 PM
Sequence of Flow Items Through a Processor Anthony Timmiss Q&A 0 06-11-2008 02:26 AM
Flow items with states AlanZhang Q&A 16 11-30-2007 10:32 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.