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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_canoe-2.0.4.tar.gz.
File metadata
- Download URL: py_canoe-2.0.4.tar.gz
- Upload date:
- Size: 24.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.9.13 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
530cd8fd2424f6e05beb2d37b763aac2076cbd287b0853891a1736224631ee47
|
|
| MD5 |
0f2dea06a95fe50b4118cec920ed98fc
|
|
| BLAKE2b-256 |
498342741fb96241aca8320c458425b7357e48dcea2ed9936deaace86d566654
|
File details
Details for the file py_canoe-2.0.4-py3-none-any.whl.
File metadata
- Download URL: py_canoe-2.0.4-py3-none-any.whl
- Upload date:
- Size: 30.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.9.13 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18319fb1e4427da5c4c56a801f55a84dd84e7a1e0d564c7b1b6462bd196b2d4c
|
|
| MD5 |
ad40fb7f7b6795ba8ad0a40fbb9df510
|
|
| BLAKE2b-256 |
d4f0498498af050abcb86b8176c16b54e039d68ea5d1653ec82e68410f5befab
|