Solution
To edit the example for usage between a Windows computer and a CompactRIO target, make the following changes:
- In the Python server script (on the Windows computer), change the 'localhost' argument in server.bind to socket.gethostname(). This allows clients to access the server.
- In the cRIO LabVIEW program, remove all the case structures and the while loop. Change the address input of the TCP Open Connection VI to the IP address of your computer/server:
You can consult and modify the attached example for your needs.