Long ago enough that I forget all about it, I wrote a serial port program in C that used visa calls for the serial port. Now I'm writing a labview serial port program, and it doesn't have all the functions I want. Specifically, I want the visa init to clear the serial port. I didn't see a function that would allow that. Apparently, the easiest way to do that is to open the serial port and then do a visa close, and then open the serial port again.
If I start and stop the serial port with the stop button on the window's toolbar, it doesn't clear the serial port, and my program doesn't work properly. I have it set up so that if you push my stop button, it does shut down the serial port which clears it. I'd hate to have to write a function to clear the serial port myself, it's just silly. Is there a way to trap the stop button on the toolbar, or disable it?
My experience with the HP visa was that it was much better at handling the serial port than I was with C.