Ms. Yanxin Feng 1 Report post Posted February 14 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. Can_test.cdbc logout.txt optcan.py Share this post Link to post Share on other sites
Hedi Boettcher 4 Report post Posted February 16 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". In addition, I added quotation marks in your script in line 11 which caused a syntax error). 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
Ms. Yanxin Feng 1 Report post Posted February 16 Hi Hedi, thanks a lot! Problem solved! Now it runs really smooth on my computer. 🙂 Best regards, Yanxin 1 Share this post Link to post Share on other sites