LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fast low level Ethernet communication with LabVIEW

Hello, I want to read Ethernet packets with LabVIEW (an private protocol, not UDP or TCP or others). The hardware writes 40 000 packets per second. I want to use winPcap API to capture data. I’ve seen the example «packet_sniffer_project » (and others). It’s an great job. But the soft reads only 1 packet at each time (wrapper dll calls « pcap_next_ex » function) and I lose packets. With my computer, I read 25 000 packets per second. How can I read more than one packet at each time? (or all the Ethernet buffer)

Thank You

Micke
0 Kudos
Message 1 of 3
(2,567 Views)
You would need to modify the DLL to do that. An alternative would be to capture the data with another program and write it to a file which you can read in after the fact.
0 Kudos
Message 2 of 3
(2,546 Views)

Hi,

maybe an example that I posted will help you

http://decibel.ni.com/content/docs/DOC-11373

cosmin 

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