DSO Shell only transmits first half of waveform
Posted: Sat Jan 19, 2019 7:47 pm
I am trying to transfer waveform data from the DSO Shell to my computer.
I am using a CP210x microUSB convertor board.
The board seems to be working properly and I can transfer some data including settings and measurements.
But when I try to transfer a waveform, I only get the first ~505 samples.
This happens no matter how the data is displayed on the screen.
The last sample I get has all the index, time, and data value information. So I don't think the read is being prematurely truncated.
I have tried changing timeout and buffer sizes in my program.
I am using Microsoft Visual C++ routines CreateFile, SetCommState, SetCommTimeouts, WaitCommEvent, and ReadFile functions.
Do you have any suggestions on what I might be doing wrong?
I have seen indications online that others are able to read the entire 1024 sample data buffer.
Thanks
Bill Boyer
I am using a CP210x microUSB convertor board.
The board seems to be working properly and I can transfer some data including settings and measurements.
But when I try to transfer a waveform, I only get the first ~505 samples.
This happens no matter how the data is displayed on the screen.
The last sample I get has all the index, time, and data value information. So I don't think the read is being prematurely truncated.
I have tried changing timeout and buffer sizes in my program.
I am using Microsoft Visual C++ routines CreateFile, SetCommState, SetCommTimeouts, WaitCommEvent, and ReadFile functions.
Do you have any suggestions on what I might be doing wrong?
I have seen indications online that others are able to read the entire 1024 sample data buffer.
Thanks
Bill Boyer