12-04-2018 07:52 PM
I am trying to write and read CAN FD frames for my ECU by using the USB-8502. The following picture shows my program.
However I get a problem that the speed of read CAN FD from my ECU is very slow and actually my ECU will send out message in 100ms per frame. Then I use CANoe(vector) to read the CAN FD message at the same time, CANoe can get all the message from my ECU and at a correct rate. So I can get the result that write CAN FD is successful of my program.
Could you help me to find the problem in my program.
And I also have another question: When I use CANoe write and read CAN FD message, and also use NI bus monitor to read the message from CAN bus which will stop the CANoe project. I don't know why.
12-05-2018 08:55 AM
Well, you have a 100ms sleep in each loop. That will limit the frequency of writing a can frame to one per 100ms.
12-05-2018 07:22 PM
Thank you for your reply.
However, I modified the loop time to 20ms, the speed of read message is still very slow, like one message 3s and very random.
08-23-2023 10:29 AM
Hey, you problems seems odd but found this information. Perhaps you could double check your sampling points.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7mDSAS&l=en-US