06-28-2013 08:06 AM
I am developing an automation for a traffic test using the WinPcap example for Labview.
All that I need is to analyze traffic to get the delay between transmitted and received data, for that I have a sniffer that gets my data in two points and with WinPcap I can get the timestamp at those moments.
I have 2 ports receiving and transmitting data at the same time, in more than 10.000 frames/sec.
In the end of the test I have more than 1 million packets sent and with my current VI I am losing around 30% of packets because my VI is too slow for this amount of frames/sec.
When I have only 10 frames/sec I don't lost any packet.
I did many modifications already to make it faster (using the Initialize Array function with length of 3.000 only, instead of using the Build Array function each packet I get, for instance).
I wonder if somebody can help me to find out other ways to make my VI faster.... Optimization 🙂
The main problem is in the Pase_Packet.vi and Cal_Delay.vi.
All the VIs find attached.
Any tip is welcome 🙂
Tanks for Support,
Thais
11-12-2013 07:20 AM
Hello Thais,
Considering the amount and speed of the data that you're trying to receive (10KHz), you won't be able to perform it using LabVIEW in a Windows system due to the determinism, we took a look at your code and you don't have a code optimization problem.
Tell us if you need any other help.