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-22-2011
Chris Moon's Avatar
Chris Moon Chris Moon is offline
Flexsim User
 
Join Date: Feb 2011
Location: Atlanta
Posts: 14
Downloads: 18
Uploads: 0
Thanks: 8
Thanked 0 Times in 0 Posts
Rep Power: 112
Chris Moon is on a distinguished road
Default Global variable & task sequence

Hello.
I tried to learn how to use global variable and global task sequence by looking at the user manual, but the examples there are not enough to know the details of them.
Also, I want to see how they work through the simulation, not just by written explanation.
Is there anyone who can upload the very simple file that explains how global variable & global task sequence work?

The things that I want to know from the simulation file is like below.
1. Which case we need to use the global variable?
2. Which case we need to use the global task sequence?
3. How does this global variable work?
4. How does this global task sequence work?
5. How is this global variable different from just variable?
6. How is this global task sequence different from just task sequence?

I will indeed appreciate it.
  #2  
Old 03-02-2011
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: 490
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

Chris,

I don't use Global Task Sequences. It is much easier for me to write them in code and I rarely have task sequences that are exactly the same on different objects. That being said, I would recommend them for people who find it easier to use the GUI interface for creating task sequences. If you have a task sequence that is found on many different objects in your model and prefer code like myself, then I would put the task sequence in a user command before I would use the GUI to create a global task sequence. I don't want to suggest that they are bad, just that they are not for me.

As for global variables the main difference between them and a standard variable is that a standard variable goes out of scope when the trigger it was defined in ends. This means that the standard variable is gone from memory and can no longer be referenced by another object and the value that was stored in it is gone and can not be recovered. Global variables don't ever go out of scope and therefore can be referenced by any object and the value stored in the variable will remain there for all to see. So, the only reason to use a global variable is if you want to have a variable that will remain in scope for the duration of the model run and/or be accessible for more than one object/trigger.

Hope this helps,
Brandon
__________________
thats not normal.
The Following User Says Thank You to Brandon Peterson For This Useful Post:
Scott Mackay (03-08-2011)


Thread Thread Starter Forum Replies Last Post
Task Sequence Display jspeece Q&A 4 09-15-2009 09:03 AM
Global variable as experiment variable Matthias Hofmann Q&A 3 09-08-2009 09:42 AM
Task Sequence Example 1 Li Chin Q&A 4 10-27-2008 06:50 AM
Task Sequence Question David Chan Q&A 1 05-27-2008 03:56 AM
coordinated task sequence, need help. qin tian Q&A 4 05-12-2008 05:52 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.