question

Pieter Cecat avatar image
0 Likes"
Pieter Cecat asked Pieter Cecat commented

Fixed Resource Process Flow stops working

Something very strange occurs after saving and closing my model. The process flow (for a fixed resource) does no longer seem to be executed nor does it write its values to the global table as I coded.

Is there any reason why process flows might no longer be executed after closing my model?

FlexSim 16.0.8
global tablefixed resource process flow
· 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.

Pieter Cecat avatar image Pieter Cecat commented ·

Please find attached my model, where I use process flow to calculate my processor's regular time and overtime for every time period (720 hours) in my 6 month planning horizon. As can be seen, the commands settablenum(...) are no longer executed (global table 'Overtime' does not contain any values)...

2m.fsm

0 Likes 0 ·
2m.fsm (55.3 KiB)

1 Answer

Matt Long avatar image
0 Likes"
Matt Long answered Pieter Cecat commented

I guess we didn't get the Event-Triggered Source's properties to completely restrict you from using the OnReset trigger until some release after 2016. You should not listen to the OnReset event. It's messing everything up. If you delete that block of activities, the model will run correctly. Instead use a Scheduled Source and create a token at time 0.

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

Pieter Cecat avatar image Pieter Cecat commented ·

Hi @Matt Long

thanks for your quick reply! Indeed deleting the OnReset trigger helped solve the problem.

What do you mean when saying I should use a scheduled source and create a token at time 0? The process flow works even without defining this additional source. Is it necessary?

Regards

Pieter

0 Likes 0 ·
Matt Long avatar image Matt Long Pieter Cecat commented ·

I was just saying that if you need to replace the block of activities that was performing logic/calculations on reset, that you should instead do those at time 0. If that block of activities is unnecessary then there is nothing extra you need to do.

0 Likes 0 ·
Pieter Cecat avatar image Pieter Cecat Matt Long commented ·

Okay, got it! Thanks!

0 Likes 0 ·