AGV Distance Travelled Dot Syntax

AGV Distance Travelled Dot Syntax

joe_hugan1
Not applicable
0 Views
1 Reply
Message 1 of 2

AGV Distance Travelled Dot Syntax

joe_hugan1
Not applicable

[ FlexSim 19.2.3 ]

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.

0 Likes
Accepted solutions (1)
1 View
1 Reply
Reply (1)
Message 2 of 2

tanner_p
Not applicable
Accepted solution

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

0 Likes