03-02-2009 08:05 AM
How do I disable Nagle's algorithm graphically in a vi?
I'm not too hot on property nodes and the VISA manual refers to c code, which I don't see / use in LabVIEW.
03-02-2009 08:09 AM
Have you had a look at the following article:
03-03-2009 05:19 AM
Hi, I tried that but get error 1 "GetRawSocketFromConnectionID.vi - invalid connID" coming out of that vi. I'm using LabVIEW 8.5.1, on win xp pro.
03-03-2009 05:53 AM
Hi Grahamwebb,
Good Morning and I hope your well today.
I have notified of your issue by NI UK Support and I would like to try and help you to resolve your issue.
Error one can be caused by resource conflicts. I would make sure your opening and closing your port references correctly and that your only making one connection to the port at any one time.
Could you maybe post some example code that generates the error so I can help you further to debug the error?
I would also suggest making sure your communication loops for TCP/IP are seperate to the rest of your code - you do not want time delays in your communication generated by other parts of the code.
Please let me know if you have any questions,
12-20-2011 10:38 AM - edited 12-20-2011 10:42 AM
I have been using the TCP_NoDelay vi in the knowledge base article linked above for a couple years without any problems. I recently upgraded to LV 2011 64 bit, though, and now it won't work. I get the same error 1 that grahamwebb mentioned. Is this a known problem and is there any way to fix this? Before I have used it on LV 2009 and LV 2010 32 bit, and I suspect that the problem is due to using 64 bit LV. The sub vi that is producing the error, GetRawSocketFromConnectionID.vi, is password protected so there's not really anything I can try to do to debug it.
Also, I get this error even if I use the demo program that comes with the library provided in the knowledge base article. I should also probably mention that I'm on Win 7 and am currently running both sides of the TCP connection on localhost, but again everything worked in the exact same configuration I'm trying now before the switch to LV 2011 64 bit.
12-20-2011 10:53 AM
More likely than not Win7 has changed the library you need to call. I would check Microsoft's web site for enabling/disabling the Nagle algorithm on a Win7 64-bit machine. Once you know the call to make you can modify the TCP_NoDelay VI appropriately.
12-20-2011 10:58 AM
Everything works perfectly on Win 7 64-bit, just not with LV 2011 64-bit. Also GetRawSocketFromConnectionID is where the error is produced, which is password protected so I have no way of making any modifications to it. Thanks for the speedy reply, though
12-20-2011 11:01 AM
I found this link
which shows a DotNet method to disable the Nagle algorithm. Someone from NI would have to chime in on whether the VI to get th esocket reference is valid on a Win7 64 bit machine.
12-20-2011 11:12 AM
This link to the MS knowlege base may help you.
Ben
12-20-2011 11:23 AM - edited 12-20-2011 11:23 AM
@Ben wrote:
This link to the MS knowlege base may help you.
Ben
Ben, the link may be bad. I get an error when I try to go to the link.
Exception ID: 15C18E89
Please click the Back button on your browser.