Skip to content

Commit 1c92212

Browse files
author
neil.hamilton
committed
Add functions to ps4000a.py to set and get device resolution
1 parent 7894ab9 commit 1c92212

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

picosdk/ps4000a.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,3 +973,25 @@ def process_enum(enum):
973973
); """
974974
ps4000a.make_symbol("_SetFrequencyCounter", "ps4000aSetFrequencyCounter", c_uint32,
975975
[c_int16, c_int32, c_int16, c_int32, c_int16, c_int16], doc)
976+
977+
doc = """ PICO_STATUS ps4000aOpenUnitWithResolution
978+
(
979+
int16_t *handle,
980+
int8_t *serial,
981+
PS4000A_DEVICE_RESOLUTION resolution
982+
); """
983+
ps4000a.make_symbol("_OpenUnitWithResolution", "ps4000aOpenUnitWithResolution", c_uint32, [c_void_p, c_void_p, c_int32], doc)
984+
985+
doc = """ PICO_STATUS ps4000aGetDeviceResolution
986+
(
987+
int16_t handle,
988+
PS4000A_DEVICE_RESOLUTION *resolution
989+
); """
990+
ps4000a.make_symbol("_GetResolution", "ps4000aGetDeviceResolution", c_uint32, [c_int16, c_void_p], doc)
991+
992+
doc = """ PICO_STATUS ps4000aSetDeviceResolution
993+
(
994+
int16_t handle,
995+
PS4000A_DEVICE_RESOLUTION resolution
996+
); """
997+
ps4000a.make_symbol("_SetResolution", "ps4000aSetDeviceResolution", c_uint32, [c_int16, c_int32], doc)

0 commit comments

Comments
 (0)