I don't know how you configured the build but It's still bad style. You don't really want to run the whole VI. That would mean that with every iteration, you are also doing the VISA Configure Serial Port. That just wastes time. If you want to use an event structure, you can place one inside the while loop. In the timeout event, place the code you have now in there. Specify a time in milliseconds that would be how often you want code to run. Then, create a value change event for your Progammed button. Put the VISA Write and the VISA Flush I/O Buffer in that event. No need for a Manual event. Also, place the terminal inside the event structure. Something like the attachment.