LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling Nagle's algorithm?

Sorry.

 

That is what happens when I am editin trip reports and posting at the same time.

 

Here is the link

 

and as plain text.

 

http://technet.microsoft.com/en-us/library/bb726981.aspx

 

The title indicates Win 2000 but most of the stack and switches remain the same.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 11 of 15
(2,519 Views)

Yeah the link was bad for me, too. I'm not really sure how to implement a .net solution in LabVIEW. I imagine there's some Windows dll call I could make to get it working (I'm guessing that's all that's going on inside GetRawSocketConnectionFromID.vi). The preferable solution would be to still be able to handle this graphically and without dll calls, though, like with an NI update to GetRawSocketConnectionFromID. Thanks again for the replies

0 Kudos
Message 12 of 15
(2,518 Views)

@jwkelly wrote:

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


You should replace the GetRawSocketFromConnectionID VI with the one from vi.lib/Utility/tcp.llb/TCP Get Raw Net Socket.vi. You also need to change the first parameter of the setsockopt() Call Library Node to be a pointer sized unsigned integer.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 13 of 15
(2,504 Views)

Thank you, that made it work perfectly. Also thank you for the many other solutions I saw from you back when I was trying to figure out how to use dlls properly in LabVIEW.

 

Do you know if I make this change whether the code will work on 32-bit LabVIEW as well, or do I need to code it both ways and use the conditional disable diagram with the TARGET_BITNESS condition?

0 Kudos
Message 14 of 15
(2,492 Views)

If you change the VI to use the Get Raw Socket function in vi.lib and the first parameter of setsockopt() to a pointer sized integer it should work on both 32 Bit and 64 Bit platforms. NI may have been a little slow to provide 64 Bit support for LabVIEW, but if they do it, they usually do it right and this one shows again that there has been put a lot of thought into it, to provide true 64 Bit support and allow to write VIs that actually can work on both platforms. This is another example of the striving to provide true multiplatform support in LabVIEW.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 15 of 15
(2,482 Views)