ATTENTIONThis 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 |
#1
|
|||
|
|||
Display Global Variable
I would like to display a global variable value that is dynamically updated from time to time in the model. I am trying to use VisualTool, but can't figure out the best way yet. Any suggestions? I use version 4.3.7 built jan 30
Thanks. |
#2
|
||||
|
||||
I would recommend using the Visual Tool and selecting 'Text' for your Visual Display on the Display tab. Then I would modify the Display Label Value pick option from the Text Display drop-down list. I modified the 'Display Label Value' pick option to look like the following:
treenodecurrent = ownerobject(c); treenode textnode = parnode(1);/**Display Global Variable Value*/ /** \nText: */ string starttext = /**/"labelname has a value of: "/**/; /** \nGlobal Variable: */ treenode involved = /**/variable1/**/; setnodestr(textnode, concat(starttext, numtostring(involved))); This should give you what you need if you just change the involved variable (either from the code view or from the template) to the global variable you are referencing. Paul |
The Following User Says Thank You to Paul Toone For This Useful Post: | ||
Congshi Wang (11-11-2010) |
#4
|
|||
|
|||
How to point to global variable for Flexsim Chart
Dear Paul,
Using Visual Tool to display a global variable works very good so far. Now, I would like to step a bit further to present the global variable in a time line graph. I tried to use Flexsim Chart application. However, I couldn't figure it out how to point to my global variable from Flexsim Chart. Can we use Flexsim Chart application for a global variable? If so, could you please help me how to make a Flexsim Chart for a global variable? Thank you much for your help in advance. Sung |
#5
|
||||
|
||||
At the moment Flexsim Chart can only display standard statistics (input, output, state, etc). It is not currently possible to display values from Global Tables, labels or global variables. In the next release of Flexsim Chart we will be adding the ability to graph Global Tables. We figure label values and global variables can always be copied to tables before exporting the data. But none of that is going to be in Flexsim for a while.
Sorry. |
Thread | Thread Starter | Forum | Replies | Last Post |
Excel and global tables | Bill Nordgren | Q&A | 2 | 10-15-2007 04:36 AM |