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
FAQ Downloads Calendar Search Mark Forums Read

Q&A Using Flexsim and building models

Reply
 
Thread Tools Display Modes
  #1  
Old 09-01-2008
Nico Zahn's Avatar
Nico Zahn Nico Zahn is offline
Flexsim User
 
Join Date: Sep 2007
Location: Bingen am Rhein, Germany
Posts: 179
Downloads: 19
Uploads: 4
Thanks: 66
Thanked 60 Times in 32 Posts
Rep Power: 198
Nico Zahn has a spectacular aura aboutNico Zahn has a spectacular aura about
Default Watch list

Hi,
how can I monitor a global variable in the 'watch list' ?
__________________
kind regards Nico.
Reply With Quote
  #2  
Old 09-02-2008
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: 771
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

Nico, in the attached model I've changed an instance of the standard watchlist to evaluate Flexscript expressions instead. It can be edited from the Watchlist option of the tools menu. The object is called WatchExpressionList inside /Tools/Watchers and can be copied between models (or saved and loaded as a .t file).

The examples I've used trigger the watch when the queue size is greater (or no longer greater) than 4, or when the global variable 'variable1' changes (I used a script window to increment it manually for testing)

Be aware that these can slow the model down quite a bit, because they fire for every event and the expressions are switched as Flexscript.
Attached Files
File Type: zip watchExpression.zip (43.5 KB, 219 views)

Last edited by Jason Lightfoot; 09-03-2008 at 02:24 AM.
Reply With Quote
The Following 3 Users Say Thank You to Jason Lightfoot For This Useful Post:
Brandon Peterson (09-03-2008), Cliff King (09-04-2008), Nico Zahn (09-03-2008)
  #3  
Old 09-03-2008
Brandon Peterson's Avatar
Brandon Peterson Brandon Peterson is offline
The Flexsim Consultant
 
Join Date: Jul 2007
Location: Salt Lake City, Utah
Posts: 382
Downloads: 29
Uploads: 6
Thanks: 192
Thanked 516 Times in 235 Posts
Rep Power: 488
Brandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant future
Default

Jason,

Is this something that you would want to put in the User Development posts as well?

Brandon
__________________
thats not normal.
Reply With Quote
  #4  
Old 09-03-2008
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: 771
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

Brandon, certainly if you think so. Its just a concept though, as I only knocked it together yesterday evening to solve Nico's problem. It would be nice to be able to toggle between C and Flexscript, and provide an edit window instead of typing into the table cell, which would mean some watchtable GUI changes.
Reply With Quote
  #5  
Old 09-04-2008
Nico Zahn's Avatar
Nico Zahn Nico Zahn is offline
Flexsim User
 
Join Date: Sep 2007
Location: Bingen am Rhein, Germany
Posts: 179
Downloads: 19
Uploads: 4
Thanks: 66
Thanked 60 Times in 32 Posts
Rep Power: 198
Nico Zahn has a spectacular aura aboutNico Zahn has a spectacular aura about
Default Watching global variables

Hi Jason,
nice GUI. Its more comfortable than to have a visual tool display the global variables and expressions.
__________________
kind regards Nico.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Watch List AlanZhang Q&A 1 06-16-2008 09:20 AM


All times are GMT -6. The time now is 11:12 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.