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 |
#2
|
|||
|
|||
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. Last edited by Jason Lightfoot; 09-03-2008 at 02:24 AM. |
The Following 3 Users Say Thank You to Jason Lightfoot For This Useful Post: | ||
Nico Zahn (09-03-2008) |
#3
|
||||
|
||||
Jason,
Is this something that you would want to put in the User Development posts as well? Brandon
__________________
thats not normal. |
#4
|
|||
|
|||
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.
|
#5
|
||||
|
||||
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. |
Thread | Thread Starter | Forum | Replies | Last Post |
Watch List | AlanZhang | Q&A | 1 | 06-16-2008 09:20 AM |