there are ways to add IO if the devices have already been setup in
MAX or your Project. But is there a way to add new devices without
stopping your code and without having to set the devices up in MAX
first?
if you write your function so that you can handle it, then it's possible. Can you explain what exactly you mean? Do you think about new channels or new devices?
What will the code read if no devices is found in the port? You can disable the error message and connect the error out of "open" to a case structure and inside the no error case you can put your read/write function. Just a thought. But are ou sure of the com port number?