09-16-2011 12:37 PM
I´m begin a application to read CAN with the NI 9853 and NI 9852 Modules, but I´m having a problem to transfer the information to the Real-Time module. I made this VI to transfer the CAN information to a FIFO in the FPGA module:
I can see in my probes ("Mod2/CAN0" and "Mod1/CAN0") that the information is being read. So I made this VI in RT to read and show the information:
But when i RUN the system the information doesn´t appear in "Data". The information flash sometimes but allmost all the time there is no information "Data", and when the information is read it desapear after a few seconds. Any ideas?
Solved! Go to Solution.
09-19-2011 01:09 PM
Good afternoon, MarcusBianchi,
Please check these links help you in your application to do some tests. Any questions please contact us.
http://digital.ni.com/public.nsf/allkb/804FC636F172426A8625729F00185149?OpenDocument
http://digital.ni.com/public.nsf/allkb/511639E8C5ED353686257538005EB4A9?OpenDocument
http://digital.ni.com/public.nsf/allkb/511639E8C5ED353686257538005EB4A9?OpenDocument
http://zone.ni.com/devzone/cda/epd/p/id/5474
Sincerely,
09-23-2011 09:49 AM
You might need to insert an FPGA I/O Method Node for your CAN channels using the Reset function. So my CAN loop in the FPGA code has the typical timed loop in the first frame, then the reset, then the regular acquire loop containing a read - wait - write - wait sequence. I found that improved connectivity tremendously.
09-23-2011 11:25 AM - edited 09-23-2011 11:27 AM
After some tests I was able to read the CAN0 entrance from the NI-9853 Module, but I couldn´t read the CAN1 of the same module or any of the entrance from NI-9852. My code is this:
Mod1 is a NI-9853 and Mod8 is a NI-9853. The others are NI-9211 Modules.
But I still got no information in Mod8/CAN0. I´m using NI CAN DemoBox to test the program.
09-23-2011 11:27 AM - edited 09-23-2011 11:28 AM
CAN0 and CAN1 are powered differently. Have you taken that into account in your wiring? I believe CAN0 is powered internally to the NI card, but CAN1 must be powered externally. Also, the 9853 and 9852 work at different speeds. Have you taken that into account?
09-23-2011 11:57 AM
I was taking that in to account, but I saw in the NI CAN DEMOBOX the exit was already powered. When I checked with a multimeter my surprise was that the exits AREN´T powered, so the manual is worng or my DemoBox is broken. Anyway thanks for the help.