I have a PS2203 and I'm using the PS2000.dll and ctypes in Python. I have it working with no auto stop and my call back function collects the data nicely. I've set up a data buffer of length 20,000 and set the overview_buffer_size to 20,000, I have the timebase set to 1us. I was hoping to be able to only transfer the overview buffer data to my buffer once they were full so I guessed this is very much dependent on the speed of the computer as the number of values collected on the first call to
gives me 20,000 values but subsequent calls give me:
I tried placing a sleep in the code after the call to ps2000_get_streaming_last_values(handle,stream_ready) but this doesn't effect the number of values captured diminishing over time. I'm assuming that this all to do with how much data is available at the time of the call to get the values but I was wondering if there's a way that I can wait until the buffer is full before transferring to my buffer?
Hope this makes sense.