Hi,
I just found a really good and easy example for that in the LabVIEW Example Finder.
Just open it (Help>Find Examples) and search for TCP. When you then select TCP there will show up some VI's. Open the "Data Server.vi" and the "Data Client .vi".
First start the Server VI and then the Client and you will see that it works. It works also if you open the Server VI on a diffrent PC if it is in the same network. You just have to adjust the IP-Adresse in the Client VI.
You can use nearly any datatype. Important is that you convert it before you sent them into a string (with Typecast f.e.). And when reading the data you have to convert it back into the type it was before.
This example is really good and I hope it answers your questions.
Greetins, RMathews
Ramona Lombardo
Applications Engineer, NI Germany
Certified LabVIEW Developer