question

samsimulation avatar image
0 Likes"
samsimulation asked Jason Lightfoot answered

Calculate the distance and time from the part origin (source) to sink

Greetings everyone,

Thank you for being a great support!

Question1) Can anyone please guide me with proper steps to help me understand how can i track the distance and time the Part takes from source to sink? in the form of dashboard

Question 2) Also if i want that data too for the time and distance record for 8 hours, what steps do i need to take in Statistics collector ?


Please guide with screenshots at least so i can understand what exact parameters to select

Distance and time calculation practice.fsm

Kind request if you can also show in the attached model, please


Thank you in advance.

FlexSim 24.0.0
timestatistic collectordistance traveled
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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered

In the attached model I set labels to record the model location of the item (center) and the time it was at that location (on the source creation). Then on Queue2 I create a new location label and use a code snippet to calculate the distance using Vec3's magnitude method and print that to the output console along with the time and speed.

distance-and-time-calculation-practice_jl.fsm


5 |100000

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