Jump to content
Ms. Yanxin Feng

Software connector "CAESES+python"

Recommended Posts

Dear all,

I am trying to connect CAESES to python code via Software connector. The example is to optimize a can. 

I already checked the tutorial of connecting to an external software. I followed the tutorial step by step. However, after I put the executable file for python, it just showing pending but no results, then the CAESES will crash or I have to cancel the run manunally to stop it.

I don't know what is the problem, so any advice will help. Thanks a lot in advance.

 

PS: Path for the executable file: C:/Users/fengy/AppData/Local/Programs/Python/Python310/python.exe

Here is the screenshot of my software connector.

1676373393(1).thumb.png.966b096945c22a0464b02ab5ccc60923.png

Can_test.cdbc

logout.txt optcan.py

Share this post


Link to post
Share on other sites

Dear Yanxin,

The setup  looks good for the start. There is just one missing part in your software connection. You trigger the execution/start of python correctly. So python starts in the background, however does not know which commands/scripts to execute or what to do next, so it stays in the "pending" mode, waiting for input.

Therefore, you need to tell python which script to run as an argument. You can find the input field if you expand the "Execution Settings".

python_script_argument.thumb.png.e5f54522c8de67f06153655cee9f4a26.png

 

 

In addition, I added quotation marks in your script in line 11 which caused a syntax error).

string.thumb.png.6e2366ad40348677bd984c5a02826275.png

 

Here is the project file for you as a reference. (Note: I changed the path to my python executable to test on my PC. Please, adapt the path accordingly to your executable file again.)

Can_test_V2.cdbc

Have a nice day.

Kind regards,

Hedi

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...