Twin activate hangs and not responding when running simulation

sudo
sudo Altair Community Member
edited April 18 in Community Q&A

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.


image.png


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

  • sudo
    sudo Altair Community Member

    Now I am getting this error:

    image.png
  • RSGarciarivas
    RSGarciarivas
    Altair Employee

    Hi @sudo,

    There are three things you can try to identify the source of the issue:

    1. Switch from dark to standard theme. It's possible you're encountering a bug when running the model with this theme.
    2. Turn off the Python block and run the MotionSolve block with some fake inputs. Does it still crash?
    3. 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

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.