question

俊亦 avatar image
0 Likes"
俊亦 asked CSN answered

how to make event-triggered source response when a taskExecuter enter a queue ?

ask_for_help.fsmI want to implement an operation that when a taskExecuter enter a queue, then the taskexecuter can unload some boxes in the queue? how can I do ? how to set the event-triggerrd source?

FlexSim 20.0.0
sourceflexsim 20.0.0
ask-for-help.fsm (69.9 KiB)
· 3
5 |100000

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

Jeff Nordgren avatar image Jeff Nordgren commented ·

@laijunyi1996,

I'm not understanding what you are asking. Can you be a little more specific on what you need to happen in the model? The more information, the better.

Thanks.


0 Likes 0 ·
俊亦 avatar image 俊亦 Jeff Nordgren commented ·

when Operator1 put the boxes into queue2, I want driver1 and driver2 to take these boxes into branch1 and branch2,(you can connect travel_to_rest and event_triggered_source in the ProcessFlow to see what I want to achieve) ,but finally by the auto trigger ,without connection.


I hope my model works like this

queue1: inventory

queue2: waiting line

branch: generate demand(random number of box)

first, operator1 take 10 groups of boxes from queue1 into queue2, then flexsim send the demand quantities of each branch to python , then python calculate the best transport route (VRP problem), the drivers transport box along given route.


so I want to achieve that when Operator1 take the box into queue2, drivers can come up and load the box automatically , and when drivers arrive the branch, they can unload the box automatically.

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

@CSN, This support request is from a customer of yours. Can you please answer their question(s)? If you have any questions for FlexSim, please let us know. We will consider this request completed on our end and let you answer it for them.

0 Likes 0 ·

1 Answer

CSN avatar image
0 Likes"
CSN answered

@laijunyi1996

First You have to create the DLL in Python containing the algorithm. If you have that you can call those functions from FlexSim. There are 2 ways to create a DLL. One is the (slightly older) DLL Maker The other option is using the module SDK

In order to solve your problem better and faster, you can contact our local China partner (BJCSN), We will provide you with professional FlexSim technical Q&A. contact information: [email protected]; QQ:1093796825

5 |100000

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