05-15-2018 08:10 AM
Hello MR. TroyK
I really appreciate your work and your support and thanks for the solution now my VI works exactly fine.
really thanks for your support.
but there is another issue which I am facing is related to your CAN e.g I will attach the VI just please check that VI as I am facing difficulty in the bus monitor.
05-15-2018 05:50 PM
The VI attached is my CAN receive example, unmodified, from my vxlapi wrapper library here. You don't have to attach it if it's already on ni.com somewhere, just refer to it with a link if you like.
How is it not working? What is your CAN bus setup?
From your front panel picture I see what appears to be a CAN frame with all 00s for ID and content. This is probably an error frame. I did not include code in the example to differentiate between normal received CAN frames and error frames.
First things to check are:
05-16-2018 12:32 AM
there is an modification done on that VI is that I have used your CAN transmit VI with the CAN receive VI because my objective is to obtain Tx & Rx frames from one single CAN.
Please check my VI one more time so that you can tell e what thing I am missing in that VI and how to solve that error.
05-16-2018 01:05 AM
@Kdbrose wrote:
my objective is to obtain Tx & Rx frames from one single CAN.
You need to two nodes on the bus. One to transmit, one to ACK.
If you want to see your own transmit messages, you need to xlCanSetChannelMode to generate tx receipts.
05-16-2018 01:12 AM
for your ques:-
1. Yes I have the real ECU
2. yes the termination is properly
3. Yes I know
4. which part I need to learn to understand this API concept for CAN
05-16-2018 01:52 AM
I recommend starting with section 2.4.1 - CAN Application flowchart in the XL Driver Library description document.
It shows you which functions you can use in which order. Then look at the specific functions, they have a description of what they do.
When you ask questions here, be specific about what you're expecting from your code and what you're getting.
Also explain what you have done to try and resolve the issue yourself. Then I won't have to repeat things that you already know.
05-16-2018 03:29 AM
As per the document the XL_CAN Transmit should contain message count but our dll doesn't contains that message count can you please explain why it is like this.
05-20-2018 05:35 PM
The message count in was connected, but the output was missed.
Feel free to connect it yourself.