18
3.4. Step 3: TCP/IP communications
Finally, let’s modify the Demo to communicate with the DS100/EM100 using the TCP/IP protocol. This
protocol has many advantages over the UDP/IP. Naturally, this also implies a somewhat more complicated
programming.
Fig. 4. Controls for the Demo, step 3
•
Stop the
Demo
•
If you have assigned a new IP-address to the DS100/EM100 in the previous section then change
the
RemoteHost
property of the
WinSock
control accordingly
•
Change the
RemotePort
property of the
WinSock
back to 1001