LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a UDP implementation for CVI 6.0?

I'm looking for any examples implementing UDP in CVI 6.0. The posted examples are for lower than CVI 5.0, and require wsock32.lib, which does not appear to exist in 6.0. Any help will be appreciated.
0 Kudos
Message 1 of 4
(3,521 Views)
The wsock32.lib file is part of the Windows SDK which comes with the full version of CVI. If you have the full version of CVI 6.0 (or 7.0), wsock32.lib still comes with the Windows SDK files. You may not have installed the Windows SDK. Go back through the installation of CVI and add the Windows SDK and you will have the wsock32.lib file in the cvi\sdk\lib directory.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 4
(3,521 Views)
Hi!

You may want to look at an example that we have on the web. Just go to www.ni.com/examples, put in the search "udp" and select CVI from the software pulldown menu. you should find an example that uses winsock to perform UDP communication.

FYI: When you install the Windows SDK you also get the help file with all the information on the SDK.

I hope this helps.

Regards,

Juan Carlos.
N.I.
0 Kudos
Message 3 of 4
(3,521 Views)
I got the wsock32.lib installed, and was able to compilethe UDP examples. I cannot get them to do anything on their own. So, I've spent today creating a server app and a client app to send a number entered on the server GUI to the client GUI. After a time trying to get these to run on my desktop computer, it dawned on me that the "socket locked" message I kept getting probably meant that I could not run both apps on the same computer. I now have them running on different computers, with no success. I keep getting errors like, "Not a socket", on the client.

It is very difficult slogging through this with terse undocumented UDP, winsock and wsock32 source code. BTW, the calls seem to be to winsock, not wsock32, so I don't even know why it is required
.

Any assistance you can provide will be greatly appreciated. I can e-mail the source of my two apps to you if that would help.

Regards... Gary
0 Kudos
Message 4 of 4
(3,521 Views)