Python multi-channel acquisition for PL1012

Post general discussions on using our drivers to write your own software here
Post Reply
Posts: 0
Joined: Tue Aug 17, 2021 9:04 pm

Python multi-channel acquisition for PL1012

Post by hirstd68 »

Hi. Do you have any example Python code for multi-channel acquisition on a PL1012? I'm having some issues with the channel definitions and what comes back - only the first channel I specify contains useful data.

Having modified the streaming example code, I define:

numChannels = 4
channels = (ctypes.c_int16 * numChannels)(1,2,3,4)

status["setInterval"] = pl.pl1000SetInterval(chandle, ctypes.byref(usForBlock),noOfValues, ctypes.byref(channels), numChannels)

Doubtless this is some newbie error on my part :roll:

Post Reply