Fixed Missing data and "undefined header" errors.

The missing data error, where the first data point of a sweep would be
dropped was fixed by enabling software flow control(XON-XOFF).

The "undefined header" error was fixed by increasing the inter-write delay
from 1ms to 10ms.