question

Hala avatar image
0 Likes"
Hala asked Julie Weller commented

Add condition in decision point

I have added a source and three conveyors. I added three decision points to the conveyors. In the source, I assigned flowItem class (Pill Bottle) and the Arrival style is Arrival Schedule. Then I imported data from the Excel file to the source. the table imported contains 14 columns and 100 Rows. The flow starts from the source to the first conveyor. there is the first decision point. I want to make a condition in the first decision point 1( if a value in column "Drugtype" in a table is "A" it goes to decision point 2 in conveyor 2. If the value in that column is "B", it goes to decision point 2 in conveyor 3. 222.png

FlexSim 23.1.2
conveyorstriggersdecision point
222.png (101.1 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Julie Weller avatar image Julie Weller commented ·

Hi @Hala , was Joerg's answer helpful? If so, please click the "Accept" button at the bottom of the 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.

0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Joerg Vogel edited

You find a tutorial in FlexSim manual doing what you request. There is a difference. The value which is evaluated to send items to different decision points is stored in a label. You have to replace reading a label by reading a table cell.
Table("yourTable")[num row]["DrugType"]
I assume you have already imported your excel data into a FlexSim global table called “yourTable”. And you have a value to replace ‘num row’ by it.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.