question

Bradith_alexander Zm2 avatar image
0 Likes"
Bradith_alexander Zm2 asked Logan Gold answered

ProccessFlow values

I Have this global table:

1651261751746.png


And this processflow diagram:

1651261847067.png

In the second "Assing label" i tried to get the next row if "minute" = Fin ( in global table)

1651262000497.png

In the second Custom code i tried to assign a refill value if the minute > valor "inicio" in global table

1651262104303.png


But the value in "refillmode" never chance to value in Global table



FlexSim 22.0.1
assign labelprocces flow
1651261751746.png (35.7 KiB)
1651261847067.png (48.5 KiB)
1651262000497.png (87.4 KiB)
1651262104303.png (84.4 KiB)
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

·
Logan Gold avatar image
0 Likes"
Logan Gold answered

I think token.Minuto will always be less than Fin from the TMKN table (in regards to the second Custom Code activity), because when token.Minuto is equal to Fin (in the second Assign Labels activity), token.Fila is incremented by 1. So when Fila is 1, and we're looking at the first row in the table, then as soon as Minuto is equal to 104, Fila will change to 2. The token then goes straight to the Custom Code activity and it checks to see if Minuto (104) is less than Fin in the second row (200).

Also, in the code for the second Custom Code activity, when using Model.find() on lines 13 and 15, what is the TMKN object? Is it a FluidGenerator? If so, then the refillmode variable is usually just a 1 or 2 to determine which type of refill the generator is supposed to do. But it looks like you're trying to change it to things like 1.28, 1.93, etc. Are you meaning to change the refillrate or the refilldelay instead?

It could help if you post your model with the question. If it's proprietary, then we can convert this question to a private question and only employees of FlexSim U.S. will be able to access the question.

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.