PDA

View Full Version : Task Sequence Profile


Brandon Peterson
09-09-2009, 10:33 PM
All,

Here is a new library that will add a tab to the Task Executer Parameters page that will profile the active task sequence and list out the task sequences in the queue. The library will modify the Task Executer Parameters GUI Object, add a Tasks Tab GUI Object, and add a fstaskdisplay command to the User Commands.

The fstaskdisplay command is toggled as C++:( but there was no way around that. The good news is that the command is only required to make the GUI work correctly. So as long as you don't save the command with the model then there is no need to worry about having to compile later when you don't need the GUI any more:).

To use the library follow these instructions:
1. Open the model you want to use it in. (Skip if you are going from scratch).
2. Load the library.
3. Compile the model.
4. Open the Properties of an operator or other Task Executer.
5. Click on the Tasks Tab.

I'm sure that there are some short commings with this GUI. I didn't even start thinking about coordinated task sequences yet.

Anyway, I hope that this library comes in handy for some of you.

Good Luck,
Brandon

Nico Zahn
09-10-2009, 01:17 AM
Hi Brandon,
this is a good idea, it should be definitely in the next release.
Maybe this function could be switched on/off so it won´t bring down the performance of big modells.
How about such a GUI also for the dispatcher, so you can see the queued up TS there too?

tobias.biemueller
09-10-2009, 02:53 AM
Hi Brandon,
its a very nice idea and i hope it will be part of the next release (without compile ;)).
Nico´s hints are also good, i think it make sense to implement it with a On/Off function and a possibility to enter this page from every object which use tasksequences.

Best regards
Tobias

Carsten Seehafer
09-10-2009, 07:23 AM
Hi Brandon,

Thanks for the sneak preview and your work. But I think it could be a problem for Flexsim beginners to see the tasksequences(TS) in the properties window. TS should be used only by professionals and professionals know where to find this kind of information. A newcomer will try to use TS if he finds this information in the properties window and the use of TS without accurate knowledge what to do can cause serious problems. Newcomer should learn first to use the basics and then work with TS. Just my opinion. :rolleyes:

Nevertheless thanks for your great work,

Carsten

Phil BoBo
09-10-2009, 08:50 AM
Brandon,

Here is another version of this library that doesn't require you to compile.

I removed the user command and changed the code that used it to display the task sequence using other commands that are available in Flexscript.

I also added checkboxes so you can turn it off to speed it up. After doing so, I realized that most of the slow down from having the Operator's Properties window open wasn't coming from these new hotlinks. So even though the checkboxes didn't make much difference, I left them anyways.

Brandon Peterson
09-15-2009, 12:27 PM
All,

Per your requests, here is a library that has the Tasks page on all of the Task Executers (I think!) and the Dispatcher. The dispatcher has a DisTasks page instead of a tasks page so that it would show the list of Coordinated Task Sequences.

I built this library off of Phil's so it doesn't need to compile.

Good Luck,
Brandon

Brandon Peterson
09-21-2009, 02:41 PM
All,

Here is the latest and greatest version of the library. This version has just about everything I could think to put into it and it works great for debugging. You can now view the task sequences in the task and coordinated task sequence queues of any object and you can also profile any task sequence that is in one of the queues!

I have a short video demonstrating the library at the following location: http://www.youtube.com/watch?v=vtiI_kCF4ds

Let me know if you have any comments or suggestions!

Good Luck,
Brandon