Comments (8)
Is there any chance the signal value will not set because the multiple data bases available. ? Do I need to mention the data base name along with the message?
from py_canoe.
Also I tried adding the single data base file as well,
The following code not setting the signal value to 7
from py_canoe import CANoe
from time import sleep as wait
canoe_init = CANoe()
************canoe open
************start measurement
sig_val = canoe_init.set_signal_value('CAN', 1,'ABC_1234', 'setValue',7)
print(sig_val)
Log:
2023-07-06 21:28:57,754 [CANOE_LOG] [INFO ] signal(CAN1.ABC_1234.setValue) value set to 7.
None
Please guide
from py_canoe.
CAN message should be accessible via CANoe network IL layer.
If the message is sent via CAPL or IG block then it is not possible to set the signal same via py_canoe.
It is a restriction from CANoe COM layer.
You can refer the example configuration available in this git repo for more info regarding simulation node.
Please post the sample configuration which you are facing failure. I will check and let u know the exact reason.
from py_canoe.
Hello @chaitu-ycr
Thank you for your response.
- Do I need to make any special setting for CAN IL?
- Is it possible to send the can messages with specific time frames? ex, 20ms,100ms , Cyclicmessage period 50ms etc...
from py_canoe.
Hello @chaitu-ycr
With reference to the attached image snap, I could able to see the engine ECU node and Light ECU node are"Canoe IL ...", While other nodes are "Prog..."
With modifications are your code I am able to send the diag requests and got responses also.
While unable to set the signal values. is it because the ECU node which I created is not "CANoe IL... " configured ?
How to change the prog node to Canoe IL... node?, Please guide how to create the CANoe IL ... node.
Using py_canoe the messages can be sent to real ECU's?
Thank you in-advance.
from py_canoe.
I am facing a similar issue, can you please guide on how to send can signal using Canoe IL Layer please ?
from py_canoe.
hi @Dawalnk and @raghavinti
step 1 is to make sure your dbc network ecu's support IL. for this please open your DBC and check below screenshot for reference.
step 2 is to check whether the node inserted in CANoe is using IL. check below screenshot for reference.
if your DBC network ECU not configured for IL, then you can set those values by yourself. check below screenshot for reference.
*Note: controlling messages via vector CANoe COM port is not possible. there is no CANoe COM function readily available from vector. sending message has to be always configured in CANoe config.
in future vector CANoe releases if vector provides option to control messages, i will update py_canoe package accordingly.
from py_canoe.
Related Issues (20)
- Problem opening a CANoe cfg HOT 3
- Unable to add offline source in offline mode HOT 2
- Opening 2 files at the same time HOT 8
- Dispatch CANoe without opening a configuration HOT 1
- Cannot open canoe cfg HOT 1
- Add method for calling/loading CAPL functions HOT 1
- How to check message signals with periodicity HOT 2
- ModuleNotFoundError: No module named 'utils' HOT 3
- Call capl function does not work HOT 2
- Pip install does not add the utils directory HOT 1
- Systen variable handle enhacements HOT 1
- (-2147352567, '发生意外。', (0, 'Measurement::Start', 'User interface is busy', 'D:\\Softwares\\canoe\\Help01\\CANoeCANalyzer.chm', 4470, -2147418113), None) HOT 8
- Library.IReplayBlock instance has no attribute Name HOT 3
- How to get the created system variables struct definition data HOT 2
- Can we run vtest module through python? HOT 2
- Reading Service Signals from CANoe HOT 2
- call_capl_func ERROR & Requesting Usage Example with any of the Existing Configuration HOT 1
- [BUG] Occasionally diagnostic requests get stuck in pending (py_canoe 2.13) HOT 1
- Communicating Flask app with py_canoe module, through send_diag_request method getting ECU respond only 1st time. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py_canoe.