Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN object

why do people refer to CAN object , what is the exact meaning of the CAN object , instead they can only mention as CAN ,can only explain this
0 Kudos
Message 1 of 2
(6,011 Views)

Hey pashupathi,

 

If you are refering to NI-CAN Objects, then I will try to explain...

 

There are 2 types of objects in NI-CAN:

1. Network Interface Object 

2. CAN Object.

 

You can think of the term object like a reference, or a structure.  We are refering to 2 types of structure the NI-CAN driver will use to communicate over the CAN bus. You can open, configure, read and write to each type of object.  

 

1. Network Interface Object

The Network Interface Object means that whatever you write when you call the write is directly written on the bus.  In other words, whatever you tell your network interface object to write, it writes out to the bus.  The same is true for read.  Whatever is on the bus is read.

 

 2. CAN Object.

The CAN object is "sort of" a child of the Network Interface Object.  With the CAN Object, you only read or write a single ID on the bus.  CAN Objects are used if you only care about a few IDs on the bus, or if you want to write periodic messages.

 

I hope that clears things up a bit.  Let me know if you have any further questions.

O. Proulx
National Instruments
www.ni.com/support
0 Kudos
Message 2 of 2
(5,952 Views)