Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

network interface object

Hi all,

I am trying (unsuccessfully) to use the Read Multiple frames from CAN Network Interface Object.

I can successfully read my data if I use CAN objects, and have one CAN object for each ID. I thought it should be quite easy to replace multiple Read CAN Object calls with a single ncReadNetMult VI. However, no data is ever returned from this function. When attempting to use the ncReadNetMult I configure the CAN objects, but do not open them. Is this necessary?

Any hints?

I know I have been quite vague, just maybe some one has some advice on something.

Neil

0 Kudos
Message 1 of 2
(4,110 Views)

Hi nrp,

If you look at the example programs in LabVIEW - the Read Multiple from Network Interface.vi example, then this configures the CAN network interface object, and opens it before trying to read values from it. Do you have a two port CAN card (or more that one CAN card) that you can run this example on, just by looping back the connection? This will help work out that the program is set up correctly.

What is the code you are trying to run? Can you post it here? Do you get any errors when you call the ncReadNetMulti function - or just no data?

Regards

Hannah
NIUK & Ireland

 

0 Kudos
Message 2 of 2
(4,097 Views)