question

Joe Hugan avatar image
0 Likes"
Joe Hugan asked tannerp answered

AGV Distance Travelled Dot Syntax

Is there an attribute on the vehicle that shows the distance that it has travelled? I can see the value in the statistics but I want to access it in process flow to determine the length of path that I just completed.

FlexSim 19.2.3
agvdistance tra
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

·
tannerp avatar image
0 Likes"
tannerp answered

Hi @Joe Hugan,

You can access the variable you need with the following code:

getvarnum(Model.find("MyAGVName"),"totaltraveldist");

I've created a small example to demonstrate it. The dashboard value is updated every time TaskExecuter1 drops off an item at Queue2. You should be able to manipulate this for your needs. Let me know if you have any questions to clarify this.

total-distance-traveled.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.

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.