11-13-2014 03:05 PM
I have a program I wrote last year(2013). I using LabView 2012 SP1. I need to make updates to my program but when I run it, I get an error
-107438895.
I am using a NI-9171 and a NI-9862. Driver Name NI-DAQmx Version 9.8.0f3
I do have a seperate power source for it, set at 24VDC.
I have for software:
NI-CAN 2.7.5
NI-DAQmx-Device Driver 9.8
NI-DAQmx Max Configuration 9.8
NI-XNET 1.8
Max Version 14.0.0f0
I can see the can unit in Max. I can reset it. The firmware is current. The self test is successfull.
below is my set up
11-13-2014 03:08 PM
where does the error claim to be coming from?
11-13-2014 03:15 PM
That error is CanErrBadIntfName. You are using the NI-CAN API with the NI-XNET hardware.
Questions:
11-19-2014 01:25 PM
Sorry for the delay answering I did not select the autonotification.
To answer your very first question. NI-CAN Configure Network Interface Object (ncConfigCANNet.vi)
the next 3 questions
1. I am not sure. I wrote the program almost 2 years ago..
2. I do not remember installing NXNET when I did the installetion but MAX is showing I haveNI-NXNET 1.8
3. When I was do this can set up I was in a time crunch and also I have never done can before I was learning at the same time. I try XNET but I have better results with NI-Can at that time so I just when with it.
11-19-2014 03:06 PM
If you are using a 9861, then you must have the XNet drivers installed, it won't work without it.
Also if you are using the ncConfigCANNet.vi you are using the older NI-CAN library, which means you must be using the compatibility layer software allowing you to use the old library on new hardware.
It sounds like you don't want a re-write but I would not recommend these NI-CAN driver for any hardware that supports XNet. It is different functions, but much more functionality.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
11-20-2014 03:39 PM
Hi:
You were right I did not properly install the XNet compatability. I fact I did not had it installed, after the installetion my progrm works ok.
Thanks for the help.
11-24-2014 08:35 AM
Glad to hear you figured it out.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord