LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the difference between a CAN object and a CAN Network Interface Object??

Hi
 
I have been working with the CAN APIs recently; both the Channel and Frame APIs. But a common question that keeps popping up is when to use the CAN Object and When to use the Network Interface Object??.
 
 
 
0 Kudos
Message 1 of 4
(3,441 Views)

Network interface objects will be used to write and read any object that come in on the configured net (Can0, for example) you can mask to filter out some ID's but you will need other programming to "split" different messages -- Very useful when you want to read and write different arbitration id's at the same time.

 

CAN objects will read and write a specifically defined object on the configured net (Can0::0x7E8, for example).  It will only read and write to that object no matter what else is on the net -- useful when you just care about one arbitration ID.

 

Tom

0 Kudos
Message 2 of 4
(3,429 Views)
Hi Tom,
 
Can I also know if there is an easy method of getting the the channel and message configs from the .ndc or the .dbc files?
 
Regards,
Ganesan
0 Kudos
Message 3 of 4
(3,414 Views)

I don't know about *.ndc files but importing *.dbc files are easy! 

Open Measurement and Automation explorer

Right Click on CAN channels

Select Import CAN from CANdb file

Choose the *.dbc file you want to import from

Select all messages and signals or just the specific ones you want!

This is described for MAX ver 4.1.0.3001, I'm not sure which version this functionality started with but before you could do this you had to set up each message and signal manually -- a huge improvement!

 

Tom

0 Kudos
Message 4 of 4
(3,408 Views)