question

Nathan S7 avatar image
0 Likes"
Nathan S7 asked tannerp answered

Linking two multiprocessors together in parallel

I would like to have a multiprocessor share its current state with another machine that would be operating in parallel. This way, proper tracking of utilzation can be done for the process as a whole. To do this, On State Change has been used as a trigger to update the resource of the secondary multiprocessor with the following code, where token_ref.EquipmentResource is a pointer to a resource:

Object equipment = token_ref.EquipmentResource;
equipment2.setState(toState);

The proper triggers are hit, but bizarre behavior occurs with the secondary resource. The sequence of states goes as such:

1. Object enters to be processed: Equipment 1 - waiting for operator, Equipment 2 - waiting for operator

2. Operator arrives: Equipment 1 - processing, Equipment 2 - idle

3. First process is finished: Equipment 1 - processing, Equipment 2 - processing

4. Second process is finished: Equipment 1 - processing, Equipment 2 - busy?

FlexSim 20.0.2
multiprocessoronstatechange
5 |100000

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

1 Answer

·
tannerp avatar image
0 Likes"
tannerp answered

Hi @Nathan S7,

I'm not sure the best way to look at parallel processes like this because listening to the states doesn't necessarily mean that their behavior will be the same. Instead of changing just the state, I recommend actually stopping/starting the processors when their states change. I've created a small example of what I mean that uses Process Flow to trigger the stop/start of one processor based on the behavior of the other processor. By doing it this way, you know that the processing times and everything should match up. In the example, only Processor1 is part of the MTBF/MTTR, meaning that Processor2 is strictly listening to Processor1 and nothing else is causing its downtime. Hopefully this makes sense and helps with what you're doing.

If I'm off-base and you're looking for something different, maybe you could upload the model you're working with (or a sample) that would give us a better idea of the logic you're going after. Thanks!

processor-listening.fsm


5 |100000

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

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.