10-14-2009 03:01 AM
I am sending CAN frames with the XNET interface in CAN out stream mode. Sometimes I am losing CAN messages if they get too close together. The messages are only known at runtime, so I have to setup a message (id, data length) manually (no database).
The screenshots are showing my CAN VIs. Is there something I forgot in my CAN initialization?
Solved! Go to Solution.
10-14-2009 08:06 AM
10-14-2009 08:50 AM
My intention was to transmit the message immediately by calling flush. Does it work like a file flush (like fflush in C)? I want to send immediately but without losing CAN messages.
10-14-2009 09:00 AM
10-15-2009 09:39 AM
10-15-2009 09:45 AM
One of the nice things about the new architecture is that thanks to the device-driven DMA back-end, frames sent out in stream mode are nearly instantly put on the bus, so you don't have to worry about buffers backing up unless you're saturating the CAN bus itself. Most other CAN interfaces (including Series 2 CAN) use memory-mapped functions which can limit your throughput and response times.
10-15-2009 09:49 AM