How to convert the "Slot Assigment Strategy" options as parameters?

How to convert the "Slot Assigment Strategy" options as parameters?

henry_p8
Not applicable
23 Views
4 Replies
Message 1 of 5

How to convert the "Slot Assigment Strategy" options as parameters?

henry_p8
Not applicable

[ FlexSim 23.0.7 ]

Slots.fsm

Hello everyone!

Can you support me with the following, please?

- I need to convert as parameters the alternatives available in the "Slot Assigment Strategy" tool of "Storage Object" (at least, the first four) to later use Experimenter and analyze some results. Thanks for the support.

1681428268336.png


Accepted solutions (1)
24 Views
4 Replies
Replies (4)
Message 2 of 5

joerg_vogel_HsH
Mentor
Mentor

You can do it indirectly. You assign a numbered label or in your case a parameter, which set currently used case in switch by case structure in assignment strategy. Each case contain a strategy. Therefore you copy the source code of each picklist option into your case block.

Message 3 of 5

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

You can use the 'defined' method of the parameter table:

Set up the option type of the parameter table and enter the options you see in the rack's strategy pick option list.

1681471852448.png

In the value field (above the reference field - name is missing above) use the script icon to open the editor and copy the associated trigger.

For the property name of OnSet enter "SlotAssignmentStrategy".

You're then set to use it in the experimenter and see the corresponding descriptions against the scenarios:

1681471718774.png

Model attached.

Parameter_SlotAssignmentStrategy.fsm

If you need to change many related racks then make one of them the template for all the others and just change the parameter of the template rack for the rest to inherit the property change.

Message 4 of 5

henry_p8
Not applicable

Thank you so much for the support. This is just what I needed. Your answer is very clear, concrete and practical. Thanks for the Demo.

0 Likes
Message 5 of 5

henry_p8
Not applicable

Thank you for your support!

0 Likes