Problem with Flexsimpy controller.receive() function

Problem with Flexsimpy controller.receive() function

thomas_q2
Not applicable
520 Views
1 Reply
Message 1 of 2

Problem with Flexsimpy controller.receive() function

thomas_q2
Not applicable

[ FlexSim 22.1.2 ]

Hello,

I want to use the module Flexsimpy. I managed to run the first part of the testFlexsimpy (

TestFlexSimPy.py) (PostOfficeModel), however the second part (TestSendReceive : TestSendReceive.fsm ) doesn’t work. Thr python code get stuck when it reaches the line: value = controller.receive() as you can see with the attached pictures. how can this problem be fixed ?cmd-testflexsimpy.pngpythoncode-testflexsimpy.png

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

kavika_faleumu
Autodesk
Autodesk

Hey @Thomas Q2, sorry for the late reply. This may be an issue with your FlexSim Global Preferences. Under File > Global Preferences > Code, the Python Version defaults to 3.10. I changed mine to 3.9 in this screenshot, but you may need to change your version to reflect what you have installed and are using.

1655316797450.png

0 Likes