Skip to content

Commit eae8260

Browse files
author
neil-hamilton
authored
Merge pull request picotech#40 from rzeman9/master
Fix ps6000GetValuesAsync in ps6000.py
2 parents 9fbe508 + 8daf60b commit eae8260

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

picosdk/ps6000.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,22 @@ class PS6000_TRIGGER_INFO (Structure):
649649
c_void_p)
650650
ps6000.BlockReadyType.__doc__ = doc
651651

652+
doc = """ void ps6000DataReadyType
653+
(
654+
int16_t handle,
655+
PICO_STATUS status,
656+
uint32_t noOfSamples,
657+
int16_t overflow,
658+
void *pParameter
659+
); """
660+
ps6000.DataReadyType = C_CALLBACK_FUNCTION_FACTORY(None,
661+
c_int16,
662+
c_uint32,
663+
c_uint32,
664+
c_int16,
665+
c_void_p)
666+
ps6000.DataReadyType.__doc__ = doc
667+
652668
doc = """ void ps6000StreamingReady
653669
(
654670
int16_t handle,
@@ -777,8 +793,8 @@ class PS6000_TRIGGER_INFO (Structure):
777793
uint32_t toSegmentIndex,
778794
int16_t *overflow
779795
); """
780-
ps6000.make_symbol("_GetValuesAsync", "ps6000GetValuesAsync", c_uint32,
781-
[c_int16, c_uint32, c_uint32, c_uint32, c_int32, c_uint32, c_uint32, c_void_p], doc)
796+
#ps6000.make_symbol("_GetValuesAsync", "ps6000GetValuesAsync", c_uint32,
797+
# [c_int16, c_uint32, c_uint32, c_uint32, c_int32, c_uint32, c_uint32, c_void_p], doc)
782798

783799
doc = """ PICO_STATUS ps6000GetNoOfCaptures
784800
(

0 commit comments

Comments
 (0)