question

Patrick Cloutier avatar image
0 Likes"
Patrick Cloutier asked Matthew Gillespie converted comment to answer

Trying to get State stats of processors controlled by Process Flow

I have a bunch of processors for which the ProcessTime are entered as 0 because they are controlled by a ProcessFlow. I have a EventTriggeredSource which generates a token when an item enters a processors. Then the PF closes the output and does a bunch of things like delay a certain number of time, etc. etc.

It all works well except I can't get State stats for these processors. It says they are always Blocked.

So I added a CustomCode box in the PF right after the close output to SetState to Processing. But it doesn't change anything. The State stills shows up as Blocked.

???

FlexSim 19.0.2
state statistics
· 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.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

Attaching a model would be very helpful

0 Likes 0 ·

1 Answer

Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered

@Patrick Cloutier,

You might try putting a Delay block (Breath-0 secs.) before setting the processor state to make sure that all object functions have been completed.

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

Patrick Cloutier avatar image Patrick Cloutier commented ·

Wow that works !! Thanks,

But I don't see the Accept button ?

0 Likes 0 ·