question

Enrique Elizaga avatar image
0 Likes"
Enrique Elizaga asked Phil BoBo answered

tracking taskexecuter flowitem traveled distance?

Hi, how can I track and graph the total traveled distance by flowitems acting as task executers in the model. Maybe a line graph of total traveled distance VS model time. Currently I'm using:

getnodenum(getvarnode(TRANSPORT,"totaltraveldist"))

Where TRANSPORT is the taskexecuter flowitem. I can"t seem to call it from TRANSPORT.stats. Really apreciate your time.

FlexSim 17.2.2
taskexecuter flowitemtravel distance
5 |100000

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

1 Answer

·
Phil BoBo avatar image
1 Like"
Phil BoBo answered

First, you can use getvarnum() instead of getnodenum(getvarnode()):

getvarnum(TRANSPORT,"totaltraveldist")

Second, you can use a Statistics Collector to collect data into a table for charting on a dashboard.

Attached is an example model (track-flowitem-travel-dist.fsm) that listens to the OnEntry of a Sink object where task executer flowitems go to leave the model.

When they leave, it records an entry for each flowitem with columns for the time it left and its total travel distance.

I've plotted that data onto a Time Plot to show Travel Distance vs Time with a dot for each flowitem at the time it left the model.

This example may not be exactly what you are trying to collect, but hopefully you can learn what you need to from it and customize it according to your needs. If you can't figure out how to make it collect exactly what you want, please post an example model showing what you are trying with a more detailed explanation of what you want it to do.


5 |100000

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

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.