Made the connectserial() function run through all detected serial ports and try each, dynamic ports essentially. Need to look into updating the gui before running loop so that user understands why GUI may be unresposive for a few seconds.