question

Pinakin K avatar image
0 Likes"
Pinakin K asked Matthew Gillespie commented

How to Trigger the Event triggered source using Array?

I want to use a event triggered source that listens to the change in value of an index of an array.

In the above Global Table, I want to reference the value from the first array (Array[3];{33372,33377,33251}. the source should trigger when, for example, the first value decreases to 10.

Also the same source should trigger when the second and third values of the array decrease to 10.

FlexSim 18.1.1
global tablearray
array.png (12.2 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

·
Joshua S avatar image
0 Likes"
Joshua S answered Matthew Gillespie commented

"Event Triggered Sources" and "Wait for Event" activities are meant to listen to an object in the 3D model or Activities in process flow. To "listen" to changes made to the Table, listen to the activity or whatever is making changes to the Table, then you can add custom code to check what those changes were and make any other changes necessary.

· 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.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

You can also listen to Tracked Variable nodes, but you can't have an array of Tracked Variable nodes.

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.