ps6000aGetValues() may take a long time to complete if a large amount of data is being collected. To avoid hanging the calling thread, it is possible to call ps6000aGetValuesAsync() instead. This immediately returns control to the calling thread, which then has the option of waiting for the data or calling ps6000aStop() to abort the operation.