question

Leona E avatar image
0 Likes"
Leona E asked Leona E edited

Creating a blackbox in flexsim

Hi,

I want to create an automatic car park. In would like to implement something like a Blackbox in this model to reduce the amount of simulated car rows.

So some of the cars enter sink 1 (begin of the Blackbox). All items which enter the sink 1 are pushed to a list called "Blackbox". When the difference between pickuptime (label on the items) and staytime (field in the Blackbox List) is lower than 3 hours (or 10800 seconds), the item should leave the Blackbox and be created in source 1.

How can I realise this Problem?

You find the model attcar-park-v5.fsmached.

FlexSim 17.2.2
listsourceitem information from a list
car-park-v5.fsm (172.7 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.

Jeff Nordgren avatar image Jeff Nordgren commented ·
@Leona E

Can you please clarify what you mean when you say that you want the items in the Blackbox to stay in the list? If it is the difference between the pickuptime (not sure what that is either) and the staytime, won't that number just get larger and larger? So it would always be less than 3 hours (10800 seconds), right?

Flowitems can not be created and put in a Source. It has no input ports. I would suggest that you create the flowitems from the Blackbox and put them in a Queue, not a Source.

Thanks.

0 Likes 0 ·

1 Answer

·
Mischa Spelt avatar image
2 Likes"
Mischa Spelt answered Leona E edited

If I understand what you want to do correctly, you don't even need the list: just add a bit of Process Flow logic that destroys the flow items and re-creates them after a bit of time. Just make sure to copy any labels off the flow item before you destroy it.

See the attached demo model: blackboxparking.fsm


blackboxparking.fsm (20.5 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.

Leona E avatar image Leona E commented ·

@Mischa Spelt

Thank you for your reply. I added my process flow in the following way: When the cars entry the Queue the Event triggered source create new objects. The next step is a delay time. But how can I make sure that the re-created object have the same Information (cartype, color, delay time and so on) like the destroyed flowitem?

You find my actual model attached.

car-park-v6.fsm

0 Likes 0 ·
car-park-v6.fsm (199.4 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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