I have very many Processors with different down times and up times. It will be great if you could provide a demo model with couple of Processors and their up time and down time getting updated during the reset. Thanks.
I have very many Processors with different down times and up times. It will be great if you could provide a demo model with couple of Processors and their up time and down time getting updated during the reset. Thanks.
Could you provide some more information?
What do you mean by "Up Time" and "Down Time"? A time table, MTBF/MTTR or something else?And in what way do you want to update those settings? Switch between different preset distributions, set which processor is assigned to which schedule, etc...?
I need to assign MTBF MTTR distributions from excel to Processors.
Rather than update the entries in the MTBF/MTTR directly, it will likely be better to link those to values that can be updated more easily.
Set up an excel import to copy the distributions from excel into a global table (or copy/paste them manually).
The import will always set the columns to contain string data (text). Change that to FlexScript after the import.
You can then reference the table cell and use the distributions in them in the MTBF/MTTR. In the table format I chose above, each row would supply the values for one MTBF/MTTR.
If the distribution type always stays the same and only the numbers change, you can also just import those and read them from the table without having to run the cells as FlexScript.
The time functions are present as FlexScript nodes in the MTBF/MTTR tree. You can overwrite the treenode's code with a custom string.
treenode mtbf = Model.find("/Tools/MTBFMTTR/MTBFMTTR1>variables/mtbf"); string codeString = "Object current = ownerobject(c);\nObject involved = param(1);\nreturn exponential(0, 1000, getstream(current));"; mtbf.value = codeString;
If you type "excel" into the command helper window you will find the needed commands to open an excel workbook, navigate within and read data from it.
You could write a for-loop over all subnodes of the MTBFMTTR tools-node and generate the code strings by adding data from excel to a base string.
14 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