Hello IDS,
Thank you for contacting National Instruments.
I have created an example VI that expands on Stijn's response. The TCP listen will return IP and port information if the selected port is open. If it is not, the VI will time out and send an error. By putting the TCP Listen VI in a while loop and monitoring the error status, you can monitor the status of the TCP port.
You can adjust the timeout according to your needs.
I hope this helps,
Sean C.
Applications Engineer
National Instruments