Skip to content

Commit 4890c24

Browse files
author
neil.hamilton
committed
Update ps6000Examples/ps6000GetInfoExample.py
1 parent 0f63460 commit 4890c24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ps6000Examples/ps6000GetInfoExample.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
assert_pico_ok(status["openunit"])
2121

2222
# Get Info from scope
23-
string = ctypes.c_int8()
24-
stringLength = ctypes.c_int16(1)
25-
requiredSize = ctypes.c_int16()
23+
string = (ctypes.c_char * 40)()
24+
stringLength = ctypes.c_int16(40)
25+
requiredSize = ctypes.c_int16(40)
2626
info = ps.PICO_INFO["PICO_VARIANT_INFO"]
2727
status["getInfo"] = ps.ps6000GetUnitInfo(chandle, ctypes.byref(string),stringLength, ctypes.byref(requiredSize), info)
2828
assert_pico_ok(status["getInfo"])

0 commit comments

Comments
 (0)