gmnvh / pycarmaker

Class to control and read information from CarMaker (https://ipg-automotive.com/)
42 stars 13 forks source link

CarMaker Version 6.0.7 Compatibility check #16

Open Kood650 opened 1 year ago

Kood650 commented 1 year ago

Hi, I'm trying to run pycarmaker with Carmaker version 6.0.7. I'm running the README script tutorial, I can connect to the IPG system but I'm getting read errors (not able to get any msgs). Is this repo compatible with that version or is a Carmaker 8.0.1 required. I would appreciate any help even if not compatible.

(.venv) ➜  pycarmaker git:(master) ✗ python tutorials/access_ipg.py 
/home/a0093124/workspace/IPG_sml_imp/pycarmaker/pycarmaker/CarMaker.py:58: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if msg is "":
Traceback (most recent call last):
  File "/home/a0093124/workspace/IPG_sml_imp/pycarmaker/tutorials/access_ipg.py", line 37, in <module>
    cm.read()
  File "/home/a0093124/workspace/IPG_sml_imp/pycarmaker/pycarmaker/CarMaker.py", line 90, in read
    quantity.data = float(rx_list[0][1:])
ValueError: could not convert string to float: 'can\'t read "Qu(Car.v)": no such element in array'