I setup a port number for one of my devices and was wondering how can I check it in Ignition to see if its open or not?
Are you saying that in a script you have opened a port and want to try getting data from it? You can use the try/except functions in Python to handle code that fails to retrieve data.
Have you looked into the Serial module? You can find it on the Module Marketplace