LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW RT + wpcap.dll

LabVIEW RT + wpcap.dll

 

Hi there,
 
My equipment:
NI PXI-8110
LabView RT 2012

Issue:
We need to capture Ethernet traffic directly on the real-time system. The source (unit under test) is not using standard protocols such as TCP or UDP, but propietary data tranmission, which renders the default networking means included in LabVIEW unusable.
 
Now, the idea was to use the wpcap.dll best known from WinPcap and integrate it into the real-time system.
 
NI already provides an example which works beautifully in a Windows environment:
http://zone.ni.com/devzone/cda/epd/p/id/2660
 
But I wasn't able to get it working on my real-time system.The DLL access works, but it won't find any network devices - a function call to GetInterfaceCount always returns 0 (zero).
The problem here is that I couldn't get the NPF driver (npf.sys) working, on which the wpcap.dll relies.
According to a manual WinPcap installation procedure I found on the net the npf.sys must be installed as a service.
 
 
Is there any possibility to accomplish this?

Background:
So what's the story about using a real-time system to capture Ethernet traffic? Why not use an ordinary, let's say, Windows PC using Wireshark to do this?
Well, we need to also log the timestamp generated by the real-time system along with every Ethernet paket generated by our unit under test.
 
 
Anybody got an idea? Any help in this matter would be greatly appreciated!

Regards,


Sebastian
0 Kudos
Message 1 of 3
(3,341 Views)

Hello Sebastian,

 

WinPcap does not support VxWorks or Pharlab (RT operating systems which LV uses). This could be the reason, why you get an error.

 

So if you don't want or if you aren't able to use TCP/UDP, you can try to use a Digital Input device to sniff the transmitted/received packages to measure it in binary. But it won't be easy to determine the end and the beginning of a massage.

 

Best regards

 

Cem Yalcin

Application Engineer

National Instruments

0 Kudos
Message 2 of 3
(3,277 Views)

@Schlammkuh wrote:

 

According to a manual WinPcap installation procedure I found on the net the npf.sys must be installed as a service.
Is there any possibility to accomplish this?  Anybody got an idea?

This is not possible.  We do not allow the installation of filters (such as WinPcap) into the LabVIEW Real-Time Network stack.

 

-Danny

0 Kudos
Message 3 of 3
(3,229 Views)