LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

WireShark NPCAP LabVIEW

Hi 

 

I am working on trying to capture wireshark data using LabVIEW.

I read to do this we need to have NPCAP.

Even after I installed it, I am not finding any dll to code for it labview.

Please help

0 Kudos
Message 1 of 7
(1,885 Views)

They are in the Windows System directory. Depending how you install the according NPCAP drivers you have also WinPCAP compatible wrapper libraries in your system.

<System32>\Npcap

 

Note that <System32> is actually SysWOW64 on a 64-bit system if you try to access it from a 32-bit application.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 7
(1,879 Views)

Thanks for you reply.

 

Can we not access wireshark directly in  labVIEW?

0 Kudos
Message 3 of 7
(1,861 Views)

You asked about NPCAP! 😁

 

WireShark is an application and you can of course start it up with System Exec from LabVIEW. It even supports the -g option in the arguments where you can set a specific filter rule to use. But to do more you would need to have some Inter Application Control interface in WireShark. I never checked but I can't seem to find anything specific. You could always write a WireShark plugin in Lua that provides a remote control interface that you can connect to from LabVIEW but I'm not aware of one that is ready made.

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 7
(1,844 Views)

I used the command line utility the one time I needed this.  With System Exec, I opened the utility to capture packets, then killed it with a task manager kill, also called with System Exec.  I don't know if that is the best way - just one way.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 7
(1,813 Views)

Raw Ethernet Frame Decode and Encode Example contain a library of VIs that work together to wrap various Ethernet packet sniffing functions available from WinPcap, a Windows packet capture program.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 6 of 7
(1,781 Views)

@ZYOng wrote:

Raw Ethernet Frame Decode and Encode Example contain a library of VIs that work together to wrap various Ethernet packet sniffing functions available from WinPcap, a Windows packet capture program.


The problem with this example is it is supposed to be standalone and swallows all the errors so you really don't know what is going on.  It's good to get an idea of how to do it, but I wouldn't use it outright.  Also, doing it the way that the example has a clunky way of determining which adpater to monitor.  (And if the adapter order ever changes, you're screwed - like when there's a Windows update that adds some kind of virtual adapter.  Or at least that's how I remember it.)

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 7
(1,776 Views)