import data from python

import data from python

ttobylin
Participant Participant
181 Views
1 Reply
Message 1 of 2

import data from python

ttobylin
Participant
Participant

I want to post the scheduling results back to the GlobalTable when simulating using flexsimpy.

I've read this article and successfully implemented it,

but I have a problem: I don't want it to be triggered during on reset, as this would interrupt the entire process.

I want to post the results back to the global table as soon as I get them, so the processor can process them according to the schedule.
How can I solve this problem?  thank you very much!!

0 Likes
182 Views
1 Reply
Reply (1)
Message 2 of 2

kavika_faleumu
Autodesk
Autodesk

Hey @ttobylin, in the article, I create a User Command formatted for externally linked code. User Commands can be run at any time of the program. If you have some process somewhere (e.g., a Process Flow token, a trigger on an object, etc.) that recalculates global table values, you can have that process call your User Command which should evaluate your Python code. Then, the Python code will send back a proper schedule to FlexSim so you can properly update your Global Table.

0 Likes