Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Error sending multiple CAN messages

Hi all, I'm developing a program to send multiple messages over a CAN bus (everyone with diferent timming) I'm using the Frame API's, basically the ncConfigCANObj.vi to define the parameters of the message. My problem is when I load the bus with more than 40 different messages, LabVIEW give me the next error:
 
 
Does
0 Kudos
Message 1 of 3
(5,700 Views)

I did not finish the question. Does anybody knows why I have that limitant with a few messages??

 

Thanks in advance for your help.

 

Alfredo Valles

0 Kudos
Message 2 of 3
(5,699 Views)

Hi Alfredo,

I have a few questions for you.  In the ncConfigCANObj.vi, what are you setting the period to?  What is likely happening is that your are trying to send more frames during a given period than your hardware can handle.  If you want to use the periodic transmit, you will need to increase the period specified or decrease the number of messages being sent.

Alternatively you can bypass periodic data transmission, and use software timing and queues to send out your data.  Check out this discussion forum for more information on the problem you are experiencing and the various solutions.  This online KnowledgeBase has additional information on optimizing CAN i/o.  I hope this information helps, if you have additional questions, please post back.

Thanks, Ted

Ted H
Applications Engineering
National Instruments
0 Kudos
Message 3 of 3
(5,680 Views)