06-14-2022 01:42 AM
Hello All,
I have created the Vi using Lab-view to transmit and receive the CAN frame.I am using the card 8513.
When two channel connect externally then i am able to see the transmitted frame from one channel to recieivng of the same frame on the other channel.
1) But when connect channel 1 ( Tx) to the external tool VN1610 (Vecotor hardware) to see the transmission happening or not in CANoe but we are not able to see any CAN messages received.
Refer image : 1
2) Secondly , Receiving of CAN frame ( When CH1 and CH2 of 8513 connect together ) splitting to signals not updating using "Frame to signals" when mapped to check for signals.
Refer Image 2.
06-14-2022 08:02 AM
I don't fully understand what you are saying. But I suspect you need some propagation time in your code. You are writing the frame, then immediately reading from a queued session. The written frame may not have made it to the read one yet. I'd suggest throwing in a delay after your write, but before the read. You can also try to use the Number To Read input and set it to 1, along with a timeout. Then that function will wait for at least one frame to be available to be read before returning.
You might also want to start with one of NI's built in examples. Go to Help >> Find Examples and search for XNet, or one of the common session types like Frame In Queued, or Frame Out Queued. If you are confused about the session types and how they work, you should check out my CAN blog, particularly Part 6 which goes into XNet.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord