picosdk-python-wrappers
picosdk-python-wrappers copied to clipboard
Update ps5000aRapidBlockExample.py
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).