Twin activate hangs and not responding when running simulation

I have a Twin Activate project where I’ve established communication between a Python block and a MotionSolve block. The MotionSolve block runs a simulation of an automatic motorcycle. I’m passing an input from the MotionSolve block to the Python block, and the Python block also sends an output that is received by the MotionSolve block as an input.
When I try to run the simulation, the software hangs and not responding, so I have to forcefully close the application.
Below is the Python script I’m trying to run. This script loads an AI model that predicts the gear ratio of the motorcycle based on input received from the MotionSolve block and returns the prediction as an input to the MotionSolve block.
Answers
-
Now I am getting this error:
0 -
Hi @sudo,
There are three things you can try to identify the source of the issue:
- Switch from dark to standard theme. It's possible you're encountering a bug when running the model with this theme.
- Turn off the Python block and run the MotionSolve block with some fake inputs. Does it still crash?
- Turn off the MotionSolve block and run the Python block with some fake inputs. Does it still crash?
Doing these things will help isolate the probable cause to continue looking further. Please let me know how it goes.
Rafael
1