question

Iago MF avatar image
0 Likes"
Iago MF asked Iago MF commented

AGV Network Customization Delegate setSpeedProfile

Hi!

How can I identify the travelPath being calculated in the setSpeedProfile code? The way I was using is the following loop, but if it has to pass through the same path twice, it doesn't work. I would have to add some other condition. Is there any way to directly obtain a reference to the travel path?

AGV.TravelPathSection section;

int i;

for(i = 1; i <= agv.travelPath.length; i++)

{

if(agv.travelPath[i].path == path)

{

section = agv.travelPath[i];

break;

}

}

Thanks in advance!

FlexSim 23.1.3
agvnetworkagv customization delegatecustomizationdelegate
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
0 Likes"
Felix Möhlmann answered Iago MF commented

The travel path is actually passed in as a parameter. The header that is shown in the documentation seems to be an accidental duplicate of the getPathTravelWeight header.

1690963902014.png

Please take a look at this @Jordan Johnson.

By checking what values are passed in by assigning them to Variant variables, the correct header should look like below (as far as I can tell).

AGV agv = param(1);   // the travelling AGV
Object path = param(2); // The path the travel section is on treenode travelPath = param(3); // The current travel section treenode agvTyp = param(4); // The type of the travelling AGV

1690963791787.png


1690963791787.png (14.2 KiB)
1690963902014.png (70.7 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.

Iago MF avatar image Iago MF commented ·

I hadn't realized that the header was incorrect.

Thanks @Felix Möhlmann !

0 Likes 0 ·

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.