Commit 514e36b
authored
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).1 parent ddd796d commit 514e36b
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
0 commit comments