question

Ryosuke S avatar image
0 Likes"
Ryosuke S asked Ryosuke S commented

About the update of the AGV location

We were monitoring the position of AGV as it moves as below. We notice that when we print the location.x value to Output console every 0.01sec, the value doesn't change for 0.02 to 0.03 sec. The agv itself seems to be moving smoothly, but why does this occur?

Is the update interval for the location fixed? Or does it rely on something? If it is fixed, what is the update interval? Also if it is fixed, is there a way to get the location ignoring this interval?

Customer what to link FlexSim to their system, want to retrieve precise position of the AGV in the simulation model. Thank you in advance.

capture003.jpg

test2.fsm

FlexSim 21.0.6
agvlocationflexsim 21.0.6update
capture003.jpg (109.5 KiB)
test2.fsm (33.2 KiB)
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

Felix Möhlmann avatar image
4 Likes"
Felix Möhlmann answered Ryosuke S commented

The location is only updated when the window is redrawn and thus framerate dependant. For example, try running your model while the 3d window is not active (switch to another tab). The location will stay 0.

To circumvent this, call

updatelocations(<InsertObjectHere>)

before reading the location.

test2_1.fsm


test2-1.fsm (33.5 KiB)
· 1
5 |100000

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

Ryosuke S avatar image Ryosuke S commented ·
@Felix Möhlmann Thank you for your reply! It's clear now.
0 Likes 0 ·