Skip to main content

About py_canoe

Python 🐍 Package for controlling Vector CANoe 🛶 Tool

Acknowledgements

I want to thank plants 🎋 for providing me oxygen each day. Also, I want to thank the sun 🌄 for providing more than half of their nourishment free of charge.

Prerequisites

  • Python(>=3.9)
  • Vector CANoe software(>=v11)
  • Windows PC(recomended win 10 os)
  • visual studio code

python environment setup

create python virtual environment

python -m venv .venv

activate virtual environment

.venv\Scripts\activate

upgrade pip

python -m pip install pip --upgrade

install py_canoe module

pip install py_canoe --upgrade

Usage

Import CANoe module

# Import CANoe module
from py_canoe import CANoe

# create CANoe object
canoe_inst = CANoe()

Example use cases

# open CANoe configuration. Replace canoe_cfg with yours.
canoe_inst.open(canoe_cfg=r'tests\demo_cfg\demo.cfg')

# print installed CANoe application version
canoe_inst.get_canoe_version_info()

# Start CANoe measurement
canoe_inst.start_measurement()

# get signal value. Replace arguments with your message and signal data.
sig_val = canoe_inst.get_signal_value('CAN', 1, 'LightState', 'FlashLight')
print(sig_val)

# set signal value. Replace arguments with your message and signal data.
canoe_inst.set_signal_value('CAN', 1, 'LightState', 'FlashLight', 1)

# send diagnostic request. Replace arguments with your diagnostics data.
resp = canoe_inst.send_diag_request('Door', '10 01')
print(resp)

# Stop CANoe Measurement
canoe_inst.stop_measurement()

# Quit / Close CANoe configuration
canoe_inst.quit()

For all available CANoe methods check user documentation.

User Documentation click here

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_canoe-2.1.0.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_canoe-2.1.0-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

Details for the file py_canoe-2.1.0.tar.gz.

File metadata

  • Download URL: py_canoe-2.1.0.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.9.13 Windows/10

File hashes

Hashes for py_canoe-2.1.0.tar.gz
Algorithm Hash digest
SHA256 0cc5e6645454c846be0c9f8132068ab7171c9427ee21afacdcb691948cf9f462
MD5 41618b3fc6c649788d31ca556474f802
BLAKE2b-256 5d9b7b33db1a0f6ddce51547efc4f7c63440e6834d46edd8fb04c8c6e8847ac6

See more details on using hashes here.

File details

Details for the file py_canoe-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: py_canoe-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 34.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.9.13 Windows/10

File hashes

Hashes for py_canoe-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8009495c6aebe76b16c37699f2137fde77cdd114c01b7b2fd8be4a8ff53be0bd
MD5 ce9c60f27516ce16997e19e8981a621a
BLAKE2b-256 1f0cd355896ec61003ea114b8bfe4501b39d4d6a39af33b324d8d881e7e0ee02

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page