py_canoe
Python Library for controlling Vector CANoe tool
Installation
Always Create Virtual environment
python -m venv venv
Activate virtual environment and upgrade pip
venv\Scripts\activate
pip install pip --upgrade
Install py_canoe module
pip install py_canoe
Usage
Import CANoe module
# Import CANoe module
from py_canoe import CANoe
# create CANoe object
canoe_inst = CANoe()
Some more commonly used methods
# open CANoe configuration. Replace canoe_cfg with yours.
canoe_inst.open(canoe_cfg=r'C:\Users\Public\Documents\Vector\CANoe\Sample Configurations 11.0.81\.\CAN\Diagnostics\UDSBasic\UDSBasic.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('CAN', '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-0.0.1.tar.gz
(9.6 kB
view details)
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-0.0.1.tar.gz.
File metadata
- Download URL: py_canoe-0.0.1.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e61f8a5c88c24efd03a679a6f085f8a0b729d6f9af40406d5b9efc17003397b8
|
|
| MD5 |
91ada090402b702eefcc73319e804253
|
|
| BLAKE2b-256 |
542638ab7642a7b9972ffd0b6148fa2e6357a9889009d69a1ac68f3d18a5b987
|
File details
Details for the file py_canoe-0.0.1-py3-none-any.whl.
File metadata
- Download URL: py_canoe-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
020f680a470537b51508f804beabcd8a9806acf1577beccf34c05083c7a06238
|
|
| MD5 |
72987f38e3faa0598107c02fc8e1d062
|
|
| BLAKE2b-256 |
32d5e0121f9efc619d14a94cbfd0b52b953475a031bbc0e839075df59b8d4329
|