Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple CAN objects

Hi

 

I am using an USB-8473 CAN module and would like to create multiple receive objects.  I wanted to create a different Series 2 mask and comparator for each object, so that each object could receive only one arbitration ID.  Is it possible to set each object with a different mask and comparator?

 

Thanks

John

0 Kudos
Message 1 of 3
(6,657 Views)

You can filter a maximum of two ranges using the comparators and bit masks. As far as single arbitration IDs go, you can use CAN Objects in the Frame API to receive only the relevant arbitration IDs.

There is a lot more information in the NI-CAN Hardware and Software Manual that can be found here:
https://www.ni.com/docs/en-US/bundle/ni-can-hw-sw-seri/resource/370289t.pdf

Filter/Comparator - pg 10-109
CAN Objects - pg 9-3

There is also a Series 2 LabVIEW example that you can look at if you download the NI-CAN drivers here:
https://www.ni.com/en/support/downloads/drivers/download.ni-can.html

Just go to LabVIEW > Help > Find Examples > Hardware Input and Output > CAN > Frame API > Basic > Series2 Filter Mode.vi .

National Instruments
0 Kudos
Message 2 of 3
(6,645 Views)

Anna

 

Thanks for the response, but I am using CVI 2009.  Are there any other CVI examples, besides the ones that were shipped with CVI?

 

I am using driver version 2.6.3, is there a reason to go backward to 2.6?

 

Also the manual states: The USB-847x hardware uses only the Network Interface Objects for communication.  So CAN Objects are not a valid method.

 

 

The manual has a few inconsistencies.  In the manual it states:

For the 847x and 847x with Sync series CAN interfaces, only NC_ATTR_START_ON_OPEN and NC_ATTR_BAUD_RATE are valid configuration attributes. All other configuration attributes are ignored.

But further read shows that the Series 2 filters can be used in the configuration.

 

Regards

John

0 Kudos
Message 3 of 3
(6,640 Views)