question

Thomas Q2 avatar image
0 Likes"
Thomas Q2 asked Kavika F commented

Problem with Flexsimpy controller.receive() function

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

FlexSim 22.1.2
flexsimpy
· 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.

Kavika F avatar image Kavika F ♦ commented ·

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 0 ·
1655316835900.png (39.8 KiB)

0 Answers