취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

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 포인트
1/7 메시지
2,420 조회수

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
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 포인트
2/7 메시지
2,414 조회수

Thanks for you reply.

 

Can we not access wireshark directly in  labVIEW?

0 포인트
3/7 메시지
2,396 조회수

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
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 포인트
4/7 메시지
2,379 조회수

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 포인트
5/7 메시지
2,348 조회수

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/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 포인트
6/7 메시지
2,316 조회수

@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 포인트
7/7 메시지
2,311 조회수