LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Empty Payload CAN Frame Stream (J1939 BAM)

Hello,

 

I discovered a strange phenomenon in my LabView programm. I have a sensor which is sending process data (20ms) and multi frame data (1ms) into a J1939-network. I created a VI, which reads multi frames in the J1939-network (messages are called BAMs). The strange thing is that there is a difference between what my VIs reads and what the xnet-bux-monitor reads. In some frames the payload is completely empty (like in the picture below), but the ID and timestamp is shown.

 

I based my VI on this example: https://forums.ni.com/t5/Example-Code/J1939-Transport-Protocol-Reference-Example/ta-p/3984291#toc10

I removed the sending part and added a sub-vi which sorts my BAM messages and two error counters. Also I added a vi for stopping the session and flushing the buffer after the while-loop, without this I always gets an overflow of the buffer after a few seconds.

The VI is also in the attachments. Do you can spot any mistakes on it?

 

Thanks a lot.

Chris

Download All
0 Kudos
Message 1 of 2
(2,962 Views)

Hello,

I think I'm having a similar problem, I get some CAN frames with payload empty from time to time while the "real" frames (checked with another brand hw/sw are correctly present in the bus.

Do you have further information about this?

Thanks, best regards.

0 Kudos
Message 2 of 2
(2,359 Views)