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 02-18-2008
Sung Kim Sung Kim is offline
Flexsim User
 
Join Date: Jan 2008
Location: York, PA
Posts: 85
Downloads: 70
Uploads: 0
Thanks: 70
Thanked 9 Times in 6 Posts
Rep Power: 160
Sung Kim is on a distinguished road
Default 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  
Old 02-18-2008
Paul Toone's Avatar
Paul Toone Paul Toone is offline
Flexsim Technical Support
 
Join Date: Jul 2007
Posts: 13
Downloads: 59
Uploads: 31
Thanks: 0
Thanked 7 Times in 4 Posts
Rep Power: 160
Paul Toone is on a distinguished road
Default

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)
  #3  
Old 02-18-2008
Sung Kim Sung Kim is offline
Flexsim User
 
Join Date: Jan 2008
Location: York, PA
Posts: 85
Downloads: 70
Uploads: 0
Thanks: 70
Thanked 9 Times in 6 Posts
Rep Power: 160
Sung Kim is on a distinguished road
Default Thank you

Thank you for the tip!!!
Sung
  #4  
Old 02-21-2008
Sung Kim Sung Kim is offline
Flexsim User
 
Join Date: Jan 2008
Location: York, PA
Posts: 85
Downloads: 70
Uploads: 0
Thanks: 70
Thanked 9 Times in 6 Posts
Rep Power: 160
Sung Kim is on a distinguished road
Default 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  
Old 02-24-2008
Paul Toone's Avatar
Paul Toone Paul Toone is offline
Flexsim Technical Support
 
Join Date: Jul 2007
Posts: 13
Downloads: 59
Uploads: 31
Thanks: 0
Thanked 7 Times in 4 Posts
Rep Power: 160
Paul Toone is on a distinguished road
Default

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


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.