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 11-05-2010
mutyisi mutyisi is offline
Flexsim User
 
Join Date: Sep 2010
Posts: 8
Downloads: 15
Uploads: 0
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
mutyisi is on a distinguished road
Default Getting Name of Operator Executing a task

I was wondering how you would get the name of the operator currently executing a task if you have multiple operators that can be dispatched? Also lets say I have attached a label to each operator, how do I read the label of the executer currently executing a task?
Reply With Quote
  #2  
Old 11-08-2010
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 640
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

that is not easy. Maybe you use your own built tasksequence. Therein you send a message to another object. In one of the parameters you send the reference to the active tasksequence as number, e.g. as number one >>tonum(ts)<<. In the Onmessage-trigger you exploit this number as a node. This node is deep in the taskexecuter-tree. With the command >>ownerobject(tonode(msgparam(1))<< you get the reference to the task executer which is executing your task.

The name is quite simple: getname of the reference.

Hope, that gives you a hint

Jörg
Reply With Quote
The Following User Says Thank You to Jörg Vogel For This Useful Post:
mutyisi (11-09-2010)
  #3  
Old 11-08-2010
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 640
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

Another one from Steven Hamoen.
Reply With Quote
The Following User Says Thank You to Jörg Vogel For This Useful Post:
mutyisi (11-09-2010)
  #4  
Old 11-08-2010
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

There's also a post here that gives some alternative methods.

Be aware that if you sample ownerobject while the task is queued on a dispatcher, then that value will be cached and you'll get the dispatcher returned even when it's located elsewhere. To get the current object that has it use findownerobject()
Reply With Quote
The Following 3 Users Say Thank You to Jason Lightfoot For This Useful Post:
John Snead (11-08-2010), Jörg Vogel (11-08-2010), mutyisi (11-09-2010)
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
The transporter and operator task sequence... syseo Q&A 1 09-22-2007 01:26 AM


All times are GMT -6. The time now is 08:52 AM.


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