Hi
I want to read this speed through global table. How can I do that and what is the code.
Hi
I want to read this speed through global table. How can I do that and what is the code.
Hi @mary, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.
string agvType="DefaultAGV"; Table speeds=Model.find("AGVNetwork>variables/agvTypes/"+agvType+"/speeds");
Jason's code gets a reference to the table as a table class variable. You then read the values as you would normally by sepcifying the row and column, either by name or number.
If you are using different AGV Types you have to adjust the path in the "find" method.
Here's an a fuller example with macros for the standard number of path types
#define AGVSPEED_FWD_STRAIGHT 5 #define AGVSPEED_FWD_CURVED 6 #define AGVSPEED_FWD_SPUR 7 #define AGVSPEED_REV_STRAIGHT 10 #define AGVSPEED_REV_CURVED 11 #define AGVSPEED_REV_SPUR 12 string agvType="DefaultAGV"; Table speeds=Model.find("AGVNetwork>variables/agvTypes/"+agvType+"/speeds"); speeds[AGVSPEED_FWD_CURVED]["Loaded"]=5;
18 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved