question

Noah Z avatar image
0 Likes"
Noah Z asked Jacob W2 commented

Record the current speed of Task Executor at specific point in time?

I want to record the speed that a task executor is moving at various intervals during a model run. I see there is a "lastupdatedspeed" in the tree but it doesn't seem update to 0 in tests I've run when a TE slowed down to zero movement. Any guidance would be appreciated.

FlexSim 22.1.0
taskexecutorspeed
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Noah Z, was Andrew O's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
Jacob W2 avatar image Jacob W2 ♦ commented ·

Hi @Noah Z,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

1 Answer

·
Andrew O avatar image
0 Likes"
Andrew O answered Joerg Vogel commented

Hi @Noah Z,

You can refer to this post: https://answers.flexsim.com/questions/85677/view.html?overrideforward=1

It is generally easier to find the speed of an AGV, and there is a link in the post that should go into more detail there. For any other network, Tanner's answer should be the best approach.

· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Noah Z avatar image Noah Z commented ·
Hi Andrew, thanks for the response. My TE isn't an AGV so I would have to default to Tanner's answer as a last resort. However, I would be shocked if there isn't a entry for speed for a normal operator somewhere in the depths of the tree which would enable me to avoid a bunch of calculations every few seconds for hundreds of operators.
0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Noah Z commented ·

You can use getkinematics() to read the speed at the current time from the kinematics node.

1659965796710.png

getkinematics(Object.find(">variables/kinematics"), KINEMATIC_VELOCITY, 0, Model.time)
1 Like 1 ·
1659965796710.png (43.3 KiB)
Joerg Vogel avatar image Joerg Vogel Felix Möhlmann commented ·

@Noah Z ,please check if those kinematics values are still valid, if a traveler has been stopped by time table, MTBF / MTTR or an preempting tasksequence. I don’t know if a kinematic node gets recalculated, if stop events occur, or if events in event list gets only delayed and then kinematic node data kept unchanged.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.