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-10-2012
michaelsmith michaelsmith is offline
TMN Simulation -Australia
 
Join Date: Aug 2007
Location: Hobart Tasmania
Posts: 62
Downloads: 7
Uploads: 0
Thanks: 31
Thanked 19 Times in 12 Posts
Rep Power: 170
michaelsmith will become famous soon enough
Default Experimenter - Number of Experimental Variables

Hi

Is this variable accesible from the tree or is it calculated from elsewhere?

I am looking to set the Number of Variables before importing my experiment list into the Experimenter.

Thanks

Mike
  #2  
Old 01-10-2012
mark.gormley mark.gormley is offline
Flexsim User
 
Join Date: Oct 2008
Posts: 58
Downloads: 12
Uploads: 0
Thanks: 32
Thanked 63 Times in 29 Posts
Rep Power: 181
mark.gormley has a spectacular aura aboutmark.gormley has a spectacular aura about
Default

Hi Mike,

The experimenter variables is just a table and the Number of Experiment Variables edit box is updated by looking at the number of columns in that table.

You can change the size of this table through code to add more experiment variables using something like the following, to set the table to adjust to 6 variables:

Code:
treenode table = node("MAIN:/project/model/Tools/Experimenter/ExperimentVariables");
int numRows = gettablerows(table);
int numCols = 6;
settablesize(table, numRows, numCols);
The Following User Says Thank You to mark.gormley For This Useful Post:
michaelsmith (01-10-2012)
  #3  
Old 01-10-2012
michaelsmith michaelsmith is offline
TMN Simulation -Australia
 
Join Date: Aug 2007
Location: Hobart Tasmania
Posts: 62
Downloads: 7
Uploads: 0
Thanks: 31
Thanked 19 Times in 12 Posts
Rep Power: 170
michaelsmith will become famous soon enough
Default

Cheers Mark makes sense
  #4  
Old 01-10-2012
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

FYI I think this table will be transposed in version 6.


Thread Thread Starter Forum Replies Last Post
Global variables juan alberto Q&A 5 11-10-2010 05:47 PM
how to get number of itemtype Vic Li Q&A 11 08-19-2009 11:20 PM
the Maxium number of Experiment variables Vic Li Q&A 0 02-18-2009 03:47 AM
Experimenter variables Xavier Jackson Gripes and Goodies 4 09-09-2008 10:00 AM
GUI & linked variables Iulian Marin Ion Q&A 2 11-27-2007 10:23 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.