LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

socket programming

I'm involve in a assignment that deals with socket programming through TCP/IP. Basically i need to design a client program that sends packets to a server and it will return back the same packets with a certain delay, corruption or even loss. Thus is it possible to use labview 7.0 program to deal with it? I know if i use Visual C++ i need WINSOCK32.dll and blar blar things to create a socket to the server. If labview is possible, is there any reference or menu on teaching how? thanks.
0 Kudos
Message 1 of 6
(4,180 Views)
Greetings, Jackolim:

Have you investigated Datasocket? It can save you most of the "joy" of trying to write raw socket applications, and yet you maintain most of the functionality you are likely looking for. Also, there's no reason you can't use Datasocket to have an application "talk to itself" as well, it doesn't require separate client and server machines.
Look for datasocket examples in the help files for a good start.

Eric
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 2 of 6
(4,180 Views)
Besides datasocket, LabVIEW comes with several TCP/IP functions on the Communications palette. They isolate you from the nitty-gritty details of interfacing to winsock. There are several shipping examples of both client and server programs.
Message 3 of 6
(4,180 Views)
Thanks..... Will try to explore. But where can i find these shipping examples?
0 Kudos
Message 4 of 6
(4,180 Views)
From the Help menu, select Find Examples. This will launch the NI Example Finder. On the browse tab, you should see an example section called Networking. Expand that and you'll see a section called TCP/UDP. You can also go to the search tab and enter TCP as a keyword.
0 Kudos
Message 5 of 6
(4,180 Views)
thanks
0 Kudos
Message 6 of 6
(4,180 Views)