In my main VI, I call a sub-VI that will flush the receive buffer of serial port, write a command to the serial port, and wait for 120 ms. The main vi will then begin the reading process of the serial port.
I ran the profile performance and memory tool on it to see if the sub-VI will really run for at least 120 ms. What I got back was that it only took 0.0 ms to run the vi.
I have attached an image on what the sub-vi looks like.
Message Edited by elliot.ee on 06-05-2007 08:16 AM