09-24-2020 08:49 AM
Hi all,
I have a problem with reading values from CAN0 on NI-9853 card. I am reciving proper values for few minutes, then reciving freezes for some time and then it starts to read again. The problem appears periodically every few minutes with same period. The question is if this is a problem from card side or from TCU that is transmitting values read by this card?
Used: cRIO-9049. Baud rate is 500 kpbs.
I am attaching screenshots with used code on RT and on FPGA.
09-24-2020 09:00 AM
Hi all,
I am trying to send values via NI-9853 card with 100Hz frequency. Values are sent properly except that period between each received sample is 0.3s while I expect 0.01s. I have checked timing and this send loop last around 140ms. I would like to know what is possible problem that creates this delay?
Baud rate on CAN1 is 500kpbs.
using cRIO-9049
09-24-2020 09:12 AM
Hi MS,
I guess both messages relate to the very same hardware and the very same software…
Why don't you attach your code (aka VI files, including the project file) instead of all those images?
Why don't you handle (or atleast) read errors in the FPGA?
09-25-2020 05:20 AM
Hi GerdW,
The problem is that this VI is much bigger and whole project is rather big. And I can't upload everything. About reading FPGA errors it's simple - I forgot ^^ I have uploaded everything what is related to CAN. I did many mistakes on the begginig when I started creating this application and one of it is not to crate modules and main program is horribly big.
09-25-2020 07:05 AM
Hi MS,
@R_Z_ wrote:
The problem is that this VI is much bigger and whole project is rather big. …
I did many mistakes on the begginig when I started creating this application and one of it is not to crate modules and main program is horribly big.
You pretty much wrote a conclusion on your own: the main VI is too big, because you did not create "modules".
I guess by cleaning up that mess several problems will be solved automatically!
@R_Z_ wrote:
I have uploaded everything what is related to CAN.
All we got are images.
We cannot debug images using LabVIEW…