question

Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst asked anthony.johnson answered

AGV.Connections throws error when cp connection does not exist

Hi,

When you have multiple cp connections in your AGV network calling the function AGV.Connections might throw an unexpected error. In the attached model you can see an example of this. There are 2 connection types, Location and Connection2. The queue has a location connection and nothing else. In the script I ask how many Connection2 connections the queue has, but this throws the error:

exception: FlexScript exception: invalid index at <no path> c: <no path> i: <no path>

I think this is because the Connection2 node is not there in the tree of the queue, but I am not sure. I think this script should return 0.

AgvConnectionError.fsm

(Also cpnumconnections throws this error)

FlexSim 20.1.3
agvflexsim 20.1.3connectionscpnumconnections
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

·
anthony.johnson avatar image
0 Likes"
anthony.johnson answered

This is a bug. We'll fix it for the next bug fix release.

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.