Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN XNET XMT TIME OUT

Solved!
Go to solution

Will the CAN Frame stream data CAN function timeout if the frames streamed to the bus are not read? I get a timeout error when utilizing the CAN Frame Stream function streaming 5 frames if I do not read the frames utilizing the CAN Frame Input Stream.vi. However I have not as yet experienced the timeout error if I read the frames utilizing the CAN Frame Input Stream example VI. Is there a buffer or limit to the amount of frames streamed to the CAN network before being read?

0 Kudos
Message 1 of 3
(4,141 Views)
Solution
Accepted by topic author sfrosty

The CAN bus transmits one frame at a time with infinite retries. If you have no one listening on the bus, then the first frame will be retried and the remaining 4 frames will be untransmitted. The timeout period is for the frames to be transmitted, so yes, I would expect a timeout.

 

You can set a property to tell the hardware to only attempt a frame one time. This would work around your problem as the frame will be tried once and whether there is a listener or not, it will be considered transmitted and the next frame will be attemped.

 

I am not sure what you are actually trying to accomplish, however.

 

Message 2 of 3
(4,099 Views)

@GPIB_Guru wrote:

The CAN bus transmits one frame at a time with infinite retries. If you have no one listening on the bus, then the first frame will be retried and the remaining 4 frames will be untransmitted. The timeout period is for the frames to be transmitted, so yes, I would expect a timeout.

 

You can set a property to tell the hardware to only attempt a frame one time. This would work around your problem as the frame will be tried once and whether there is a listener or not, it will be considered transmitted and the next frame will be attemped.

 

I am not sure what you are actually trying to accomplish, however.

 


I am learning how the CAN transmit function works.

I was running my application which tranfers a signal from a MAX analog input channel to CAN. It would timeout after about 805 loop indexes. This definitely answered my question. Now that I have a second module utilizing the "CAN Frame Input STream.vi" reading the CAN data, I haven't seen a timeout as yet. Thank You! Smiley Happy

0 Kudos
Message 3 of 3
(4,085 Views)