picosdk-python-wrappers icon indicating copy to clipboard operation
picosdk-python-wrappers copied to clipboard

Update ps5000aRapidBlockExample.py

Open philschauer opened this issue 5 years ago • 0 comments

This example program will randomly crash with access violations (0xC0000005). Have traced this to ctypes.byref() passing pointers with incorrect memory sizes on the indicated lines:

  • 81-82 GetTimeBase2 expects returnedMaxSamples as * int32_t, was receiving byref(int16).
  • 290-292 GetValuesTimeOffsetBulk64 expects Times as * int64_t, was receiving byref(int16).

philschauer avatar Nov 18 '20 20:11 philschauer