Is there a getname() equivalent to grab individual multiprocessor names? If not, does someone have code that would let me reference these names? Thanks in advance!
Is there a getname() equivalent to grab individual multiprocessor names? If not, does someone have code that would let me reference these names? Thanks in advance!
Hi @Richard G
You can try to use getname(rank(getvarnode(node("MultiProcessor1", model()), "optable"), X)); which X is the index of Individual Process.
Thank you for your reply @jing.chen . Your code works to an extent, however, the process names under variables>optable do not update if the user sets a name within a multiprocessor properties box. For example:
However, the process names do update within the tree under stats>state_profiles>profile, but 'getvarnode' does not work for fetching these names. Would it be possible to modify your code to work with nodes under the stats section of an object's tree? How would that work? I've tried 'getstat' but that won't return a valid path to the state_profiles node. Example demonstrating where I'm talking about in the tree:
Hi @Richard G
The data in this node is bundle datatype, you can just use getbundlevalue() to obtain it as pic below
7 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