question

mark zhen avatar image
0 Likes"
mark zhen asked Jeanette F commented

Global table calculation method

log100204.fsmI have some questions about this calculation method. At 16 seconds, I have two products entered, but the table calculation content is as long as shown in the picture. Is there something wrong with my calculation?

1707127882978.png

FlexSim 22.0.16
global table
1707127882978.png (9.1 KiB)
log100204.fsm (350.9 KiB)
· 9
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·
The first two columns are reading the same percent value from Sink4.

Otherwise, can you explain in more detail what you think is wrong? We see two records for the two items that entered and the values you've asked to be written to the table are entered correctly, so we could use a bit more information. Thanks in advance.

0 Likes 0 ·
mark zhen avatar image mark zhen Jason Lightfoot ♦ commented ·

My first line is (0,0), but I don’t understand why it is 0,0

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann mark zhen commented ·
Because the update of the table "late" happens after the "On Entry" trigger of the sink has finished. Either update the table as part of the trigger or move the code that writes to "GlobalTable2" to the activity that updates "late".
0 Likes 0 ·
Show more comments
Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Hi @mark zhen , was undefined helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @mark zhen ,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

0 Answers