Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Frame Objects to send multiple messages

Howdy!

I am getting an error that I need to work around.  I have several messages that I need to send out periodically.  I create an object for each of them and send them out.  It works fine until I need to send the same ID with different command bytes (modes).  Then I get an error.  The error I am getting is Error -1074388969

Error -1074388969 occurred at NI-CAN configure CAN object (ncConfigCANObj.vi).

Possible reason(s):

NI-CAN:  (Hex 0xBFF62017) This attribute's value must be provided prior to the Open.  Solutions: Set the attribute using the Config function before the Open, and do not set the attribute at any later time; Do not configure multiple CAN Objects for the same ID.



Is there any way I can use objects to periodically send out the same message ID but different data (including mode byte)?  I would really hate to have to re-write this to not use objects.

Thanks in advance for any advice you can give me.
Bob Young

0 Kudos
Message 1 of 2
(4,953 Views)
Hi Bob,

You can only have one object for a certain ID. But you can change the data for that ID (object), when ever you want. Therefore you can call the Write object within a while loop and change the data input (8Byte) the way you want.

DirkW
0 Kudos
Message 2 of 2
(4,949 Views)