How fast can get a TCP read?

LV 2009 + WIN 7 with 6 GB of Ram.

I acquire two analog channels as a word of 16 bits each and adding a CRLF at the end example: 1234 567 \r\n

These data are acquired to 50ms intervals and sent over a link WiFi for my notebook running code LV.

I know not how fast the "TCP - Read" function can work and which mode (it has four options) to choose if I do not miss any incoming data...

Now I get some data in French - initially rather quickly and after a few seconds, it slows down the consdierably. I'm running the TCP-read inside a timed loop and I tried various intervals from 10 ms to 500ms. The largest value works OK, but I need the fastest possible. Tips how to handle this?

My code is attached. (The passage DIO works very well)

Even if the passage DIO works, it doesn't make sense to use a sequence structure.  It would be better to change the Standard mode and the 100ms Timeout value instead of "wait for next"millisecond"Multiple" as leading to uneven wait times.

TCP Read should run very quickly, subject to any waiting period that you set.  You should never lose data in any mode, although there is a possibility to receive a partial when you use Standard mode or immediate (unlikely in your case since you read so little data).  The operating system will be buffering of data not read for you.  If you want the fastest possible exchange, divide your code in two while loops, one for EID and the other for the series.  Serial communication can be simply a normal life while loop, with the reading of TCP dictate the timing.  Set a long timeout in buffer mode and the loop will run as quickly as it receives data.

Also, when the loop ends, you must close TCP connections, not just one of them.

Tags: NI Software

Similar Questions

Maybe you are looking for

  • If I pull the sim card from an iPhone AT & T of full fare is it then Sim-Free?

    I want to buy a sim-free iPhone, but Apple will not have any to the ship for several weeks. The nearest Apple Store has none for local pickup, either. However, the store, have a version of AT & T. If I order an AT & T iPhone OS on the Apple site, pay

  • When Firefox is being upgraded to allow the toolbar Google and its search history to stay

    Firefox 3.6 allows Google toolbar and search history drop down.Firefox 3.6 will not support much longer, according to yourWeb site. I upgraded to Firefox 4 and lost the functionality of Google. I upgraded to Firefox 5 and, again, lost the functionali

  • NB100 - freezes if I switch to the line

    I have a toshiba nb100 laptop with ubuntu linux. It seems to happen when I work offline, but to the time when I swith online it it becomes very slow and unresponsive and all pages and messages on the screen freeze and I can't delete them. I was hopin

  • Sorting in Itunes 12 problems

    I have sort within the 12.3.2.35 Itunes 64-bit. Whenever I try to enter an artist in the fields "sort as" for a group of songs under Get Info-> sort, he would return to the "Mixed" value I also disabled the compilation box in the Get Info-> Details t

  • HP Mini 5103 Windows 7 32 - Bit, recovery CD

    I have a HP mini 5103 and I wanted to save the recovery to USB and unfortunatlly, files recovery in the partiiton at startup are corrupt and the Manager of recovery in windows 7 is not there. When I press f10 or either f11 at startup it says ramdisk.