03-16-2013 10:16 PM
I am sending 300 to 400 bytes of GPS data out the serial port at 9600 baud every second. Whenever I send this data Labview will pause at the VISA Write Function until all the bytes of data are sent. This takes approximately 300 to 400 milliseconds. I am running in the asynchronous mode and have the send buffer set at 4095 bytes. Is there anyway that I can avoid this costly long pause?
03-16-2013 10:31 PM
Each byte takes about a millisecond at 9600 baud. So it will take that long to send that much data.
What else are you trying to do while the data is being sent? If we have the big picture, someone may be able to suggest an alternative.
Lynn
03-18-2013 03:07 AM
If you use a producer/consumer pattern you can queue up a send-message and it'll handle it in another thread, freeing up the 1st thread.
/Y