question

Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst asked Phil BoBo answered

Set current CP for AGV

Hi,

How can I use the currentCP command to reassign the cp the AGV is connected to? Using the old agvreassigncp works fine, but when I try to do this with the new dot syntax ( I assume I should use the currentCp function) it does not work. What goes wrong here?

Object newCP = Model.find("ControlPoint3");
Object taskEx = Model.find("TaskExecuter1");
AGV agv = AGV( taskEx );
agv.currentCP =  newCP; //Gives exception: Invalid control point at /0 c: /testlink_instance i: /testlink_associated
agvreassigncp( taskEx,  newCP ); //Works fine
FlexSim 18.2.2
agvcurrentcp
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

·
Phil BoBo avatar image
1 Like"
Phil BoBo answered

This is a bug in the AGV.currentCP property. I've fixed it for the next bugfix release.

For now, use agvreassigncp().

Thanks for bringing this to our attention.

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.