How to decide when a processor is busy ?

How to decide when a processor is busy ?

abugat
Contributor Contributor
16 Views
5 Replies
Message 1 of 6

How to decide when a processor is busy ?

abugat
Contributor
Contributor

[ FlexSim 18.1.1 ]

Hello everyone.

Today, I ask you how can I put a decision which say, in ProcessFlow, :

Go 2nd way when Processor1 is busy

Thank you.

12872-13.png

0 Likes
Accepted solutions (1)
17 Views
5 Replies
Replies (5)
Message 2 of 6

joshua_s
Not applicable
Accepted solution

In your decision point, you can use a conditional decide with the condition being:

model().find("Your_Processor's_Name").as(Object).attrs.state_current.value==1
Message 3 of 6

abugat
Contributor
Contributor

@Joshua S

Hello. In my model here, it doesn`t work because :

when token goes in decide with

model().find("Processor1").as(Object).attrs.state_current.value==1

1 : true / 2 : false

But when my processor is busy, my token goes 2nd way whereas, I want my token goes 1st way when my processor is busy and 2nd way zhen my processor is free

ex13.fsm

0 Likes
Message 4 of 6

joshua_s
Not applicable

Instead of ==, use !=

0 Likes
Message 5 of 6

adnattas
Explorer
Explorer

Hello Joshua,


I have the same issue and I applied the code you just gave and it actually worked but after 1 loop everything just ends up (false) even if the processor is empty


can you please help me check on it?

Thanks a lot

screenshot-2023-11-10-120741.png


screenshot-2023-11-10-190315.png


AGV Final 1.fsm

0 Likes
Message 6 of 6

jason_lightfootVL7B4
Autodesk
Autodesk
This looks like it's been answered in your own question.
0 Likes