Industrial Communications

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW using PCI-CAN, Error -2147136366

Here is a little bit of background. I am trying to use LabVIEW with an old PCI-CAN device. I am using the DNet toolkit for industrial communication. This device has been used by my customer with a LabWindows application which uses the devicenet functions, and is functioning correctly. The first step of the LabWindows application is to call Open DeviceNet Interface, and this is where LabVIEW errors out.

 

I was originally using example VIs provided by NI to get the device up and running, however did not have any luck. I finally stripped this down to the simplest version possible and this is what I get. When using the Open DeviceNet Interface.vi and all of the configurations matching the LabWindows application (which runs correctly), I get error code -2147136366. The error message states that the device handle is invalid and to try using the handle created by "Open DeviceNet Interface.vi" (which is the VI I'm trying to run). I have attached the application and error message.

 

Any help would be appreciated. Thanks.

Download All
0 Kudos
Message 1 of 2
(4,595 Views)

Hi kcollier

 

Could you let us know exactly which PCI card are you trying to use and which version of LabVIEW and the DeviceNET are you using?

 

Since the VI seems like a really simple test, and you connected all the required inputs in it, I can inly think that:

 

- The card is not supported by that version of the DeviceNET driver, or

- The environment is not recognizing the card as a DeviceNET interface

 

WenR

 

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