Hello
I don't know where the "param()" point, and what data it actually contain.
Thanks
Best wish
Hello
I don't know where the "param()" point, and what data it actually contain.
Thanks
Best wish
They are basically input parameters to the down function. Similarly, you will also see the param() commands in the triggers code.
FunctionName(param1,param2,....);
param(1) ;//means input parameter 1
You need these data to apply logic to the object where this function is executed or triggered.
If you want to see the values of these parameters, you can put a debugger and visit the local variables' values.
https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/Debugging/Debugging.html#overview
For example, in the down function case, you have put the snapshot. The purpose of the down function is to bring the object which is under MTTF-MTTR/ Timetable to a down state. For that, the function needs to know which object is going to go down. So FlexSim is passing the object reference as parameter1(param(1)) to the down function and by using that reference stop object () command is used to set the object in the downstate.
Similarly in an on-entry trigger of an object, if you want to add some info or change some info on the item which is entering an object. So you need the entering item info, which is passed by FlexSim as a param(1) in the on-entry trigger of the object. Otherwise, you will not get the reference of the incoming object.
So to conclude the triggers, down function-resume function, send port, etc are all functions, which need some input parameters which is passed into them by FlexSim and those parameters can be accessed using the param() command. In FlexSim these functions are called node function ().
Regards,
Arun KR
13 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