ps6000aEnumerateUnits python example

Having problems ? let us know the details here
Post Reply
Posts: 1
Joined: Thu Dec 14, 2017 7:48 pm

ps6000aEnumerateUnits python example

Post by dcseward »

Can you please post an example of using the ps6000aEnumerateUnits API using Python? I am struggling with this topic. I do what seems logical, but I keep getting a "wrong type" error. Here is my code snippet:

count = ctypes.c_int16()
serials = (ctypes.c_int8 * 50)()
serialLth = ctypes.c_int16(50)

ps6.ps6000aEnumerateUnits(ctypes.byref(count), ctypes.byref(serials), ctypes.byref(serialLth))

I have tried a few different possibilities for the "serials" argument, but nothing seems to work.

Post Reply