02-05-2017 02:26 PM
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?
Solved! Go to Solution.
02-06-2017 10:44 AM
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.
02-07-2017 09:36 AM
@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!