The first I would recomend is that you get rid of the string control
for port selection and just wire a VISA Resource Name control directly
to the VISA Configure Serial Port. You have a pretty classic race
condition with the local variable. You could also redesign it so that
the serial port is initialized just once when there's a change in the
com port selection. Since, you didn't mention exactly what the problem
was in the built application, I don't know if these changes will fix
anything. Do you get an error or is there something else?