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 04-11-2013
Harry Edwards Harry Edwards is offline
Flexsim User
 
Join Date: Apr 2013
Posts: 4
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Harry Edwards is on a distinguished road
Default Average model content performance measure

Hi,

I have built a model and am having trouble with one of my performance measures in the experimenter. I want to record the average content of the model (i.e. how many flow items are in the model)

To do this I have created a global table with the current content in the first row and cell (being updated whenever an item enters or leaves the system). I have a recorder capturing this value and providing me with an average, and I want to reference this average in my performance measure within the experimenter. The code I am using for the PM is:

return getnodenum(node(">Recorder1/variables/graphdata/1/5", model()));

But this doesn't seem to work. Furthermore, if I enter this line into the script window it doesn't work. I've tried various ways of rewriting this code using ranks, etc. but cannot get it to work. What am I doing wrong and/or is there an easier way of doing this?

Any help would be greatly appreciated
  #2  
Old 04-11-2013
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

node(">Recorder1/variables/graphdata/1/5", model())

vs

node("/Recorder1>variables/graphdata/1/5", model())

You are trying to go into the model's object data instead of the Recorder's.
  #3  
Old 04-12-2013
Harry Edwards Harry Edwards is offline
Flexsim User
 
Join Date: Apr 2013
Posts: 4
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Harry Edwards is on a distinguished road
Default

Thanks Phil!

Tags
average, content, experimenter, measure, recorder


Thread Thread Starter Forum Replies Last Post
Measure value added time Stefan Trabut Q&A 6 04-13-2011 11:38 PM
Bug in measuring average content Congshi Wang Q&A 5 01-03-2011 11:32 AM
Performance problems in big model Lydia Franck Q&A 6 07-01-2009 07:27 AM
Flexsim running performance vs Automode performance... syseo Marketing and Sales Information 6 06-10-2009 08:35 PM
How to get interval average,max,etc of a queue content ? qin tian Q&A 5 02-14-2008 10:11 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.