question

Jason Merschat avatar image
1 Like"
Jason Merschat asked Jason Merschat commented

Send to Port By Time of Day - Bug?

I am using the Send to Port > By Time of Day

I select the proper port based on the timing I want it to route to. As I follow the model, the routing starts at the wrong time. I looked to see if there was some blocking happening downstream that might cause an overflow condition to the other port at the wrong time, but none exists. Is this a bug in the program?

Jason

FlexSim 16.2.1
routingby time of dayportsend to port by time of day
· 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.

Jason Merschat avatar image Jason Merschat commented ·

It seems to be about 3 hours off. I wonder does this have something to do with a global preference or setting for machine/simulation timing.

0 Likes 0 ·

1 Answer

·
Phil BoBo avatar image
3 Likes"
Phil BoBo answered Jason Merschat commented

Open the code for that picklist option and change line 7 from

int zerohour = /**\nModel Start Hour: *//***tag:zerohour*//**/12/**/;

to

int zerohour = getmodelunit(START_HOUR);

I'll add a note to the dev list to fix this.

· 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.

Jason Merschat avatar image Jason Merschat commented ·

Excellent. Thank you!

0 Likes 0 ·

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.