question

Ashwath M avatar image
0 Likes"
Ashwath M asked Carter Walch commented

Referencing Statistics Collector in "Wait for Event"

Hi,


I was trying to reference the Statistics Collector in "Wait for Event" value and unable to reference it. I'm able to reference a Global Table value but not a statistics Collector Table value. Wondering if the reference code is incorrect or if there is any other way to to this. Thanks

FlexSim 23.0.8
statistics collectorwait for eventtables
· 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.

Carter Walch avatar image Carter Walch commented ·

Hi @Ashwath M, was Jason Lightfoot's answer 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 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

Use the same events the stats collector is using.

· 5
5 |100000

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

Ashwath M avatar image Ashwath M commented ·

StatCollector_1.fsm

Hey @Jason Lightfoot Can you let me know where the issue is in the attached model. Thanks!

0 Likes 0 ·
statcollector-1.fsm (633.6 KiB)
Julie Weller avatar image Julie Weller Ashwath M commented ·
I'm a little confused what you're trying to do here. The input to the statistics collector is just a ticker every minute and the value references your wait for event. What are you trying to accomplish?
0 Likes 0 ·
Ashwath M avatar image Ashwath M Julie Weller commented ·

Hello,


I'm trying to reference a specific row and column from a Statistics Collector table in the "Wait for event" command. For instance, the Statistics collector table updates the output of a fluid container at a certain time interval (Ex. every 10 minutes). The Wait for event in process flow would have to wait for output increase to a value that is referenced in the Statistics Collector table. I used the below code in the wait for event value - it does not seem to work.

To keep it simple :

1. How do I reference the Wait for Event (In process flow) value with a statistics collector

2. Is there a way to update each row value from a statistics collector to a Global table as the row gets generated?


1690568838920.png

0 Likes 0 ·
1690568838920.png (36.0 KiB)
Show more comments
Jason Lightfoot avatar image Jason Lightfoot ♦ Ashwath M commented ·

If you really want to detect the stats collectors events you can choose the row add or row finish events.

0 Likes 0 ·

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.