question

tomonori S avatar image
0 Likes"
tomonori S asked zacharyh commented

How to create a flow item for each date time

What is the method when creating a flow item in the source based on the attached "Data.xlsx" Excel data? (Is there any way to use global table?)For example, 8 flow items will be made at 9:12 on August 24, 2020, and 4 flow items will be made at 10:30.

If possible, I would like to be able to import (or paste) Excel data.

We would appreciate it if you could reflect it in the attached "model.fsm".

Also, is it possible to change the date in the FlexSim file later on the date the data starts?

model.fsm

Data.xlsx

FlexSim 19.0.9
global tablesourcetimeflexsim 19.0.9date
img.png (8.8 KiB)
model.fsm (18.4 KiB)
data.xlsx (9.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.

Joerg Vogel avatar image Joerg Vogel commented ·

2. You can set starting Date Time in Model Settings

0 Likes 0 ·

1 Answer

zacharyh avatar image
0 Likes"
zacharyh answered zacharyh commented

There are 2 ways to accomplish this task. The first is when using a Source in the 3D model. When looking at the properties for the source you can select an arrival style and select "Arrival Schedule". From there you can edit a table that keeps information about when items should be created and how many should be created. The time you edit in the table will be dependent on the start time of the model and the model units. (For example if you want the model to send an item at 5 minutes but your model units is in seconds you will need to say 300, like this example below.)

The Second way is within process flow, where you can use either a Schedule Source or a Date-time Source.

https://docs.flexsim.com/en/20.2/Reference/ProcessFlowObjects/TokenCreation/ScheduleSource/

https://docs.flexsim.com/en/20.2/Reference/ProcessFlowObjects/TokenCreation/DateTimeSource/


1599686260769.png (214.7 KiB)
· 2
5 |100000

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

tomonori S avatar image tomonori S commented ·

Thank you for your reply.
Paste the screen using "Date Time Source" of the process flow, but in reality, when the flow item for August 24th like "img_01.PNG" has been created, the next day August 25th I want to move to, but when I run simulation, it looks like "img_02.PNG". Please tell me how to deal with this.
Also, is there a way to operate this in a global table?

model_01.fsm

0 Likes 0 ·
img-01.png (121.6 KiB)
img-02.png (88.6 KiB)
model-01.fsm (19.8 KiB)
zacharyh avatar image zacharyh ♦ tomonori S commented ·

When adding times that are scheduled for the next day, make sure to use a value greater than 24hours to represent the next day.

When you enter the number it my originally come up wrong, don't worry about that for now but instead close the window and then open it again. Your schedule should now look something below. It should now say "Start (DD:HH:MM)"

You can now go and edit the HH:MM parts to be the correct value. DD = 01 simply means the next day.

And also you can change your model start time by going to Edit -> Model Settings and change the Model Start Time/Date, as Joerg mentioned.

0 Likes 0 ·
1599748175924.png (4.1 KiB)
1599748369465.png (46.1 KiB)
1599748537812.png (47.0 KiB)
1599748643194.png (61.1 KiB)