LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

interrupt-based winpcap functionality?

As an improvement to a VI I'm working on, I was wondering if anyone knew of a 3rd party LLB I could use that would give me interrupt-based access to the network interface.

 

I found a Winpcap for Labview project here:

http://forums.ni.com/t5/LabVIEW/WinPCAP-for-LabView-v-0-1-alpha/td-p/343479?view=by_date_ascending

 

Using the llb included with that project, I am able to sample packets off of my network interface.  Each time I click the 'read' button, it reads the network interface and gives me a data dump of the packet.  This is what I want...however, as you know network traffic is variable, and if I write a program that makes use of this read functionality, then it would rely on my loop being fast enough, which it may or may not be.

 

What I'm interested in is an interrupt based approach that I could use to execute an event structure each time there's a packet, and buffer said packet if necessary for future processing.

 

Thanks in advance.

0 Kudos
Message 1 of 5
(2,445 Views)

bmishoe,

 

I wasn't able to find any public sources for such LLBs.  I found references where others have attempted it like on lava.org, but still doesn't look like anything prebuilt.  

Wayne T. | Application Engineer | National Instruments
0 Kudos
Message 2 of 5
(2,406 Views)

no problem, thanks for checking 🙂

 

Do you have a good reference for how to build my own llb, preferably from C code, assuming I find source code?

0 Kudos
Message 3 of 5
(2,386 Views)

bmishoe wrote:

Do you have a good reference for how to build my own llb, preferably from C code, assuming I find source code?


Sorry this doesn't directly address your question, but it's a good idea to get terminology right. You can't build an LLB out of C sources. An LLB is a library of LabVIEW VIs (and they're not generally recommended these days, anyway).

 

What you want to build is a DLL. Search this forum and on LAVA for sample code that shows how a DLL can trigger event or an occurrence in LabVIEW, which will get you an approximation of interrupt-driven behavior. You're probably on your own after that in terms of linking it to WinPCAP.

0 Kudos
Message 4 of 5
(2,375 Views)

thank you for that clarification...

0 Kudos
Message 5 of 5
(2,371 Views)