Search found 4 matches

by KrisHunt
Tue Apr 12, 2016 12:23 pm
Forum: Linux
Topic: PL1000 library in Python2.7 on RaspberryPi (Raspbian)
Replies: 6
Views: 13554

Re: PL1000 library in Python2.7 on RaspberryPi (Raspbian)

Thanks for your help, but couldn't get block data configured properly, always the same channel error.
Did get the getsingle value working though so not a total loss. Thanks again!

Code: Select all

for i in range(1, 16):
    b=mydll.pl1000GetSingle(device,i,value.ctypes.data)
by KrisHunt
Wed Mar 30, 2016 10:36 am
Forum: Linux
Topic: PL1000 library in Python2.7 on RaspberryPi (Raspbian)
Replies: 6
Views: 13554

Re: PL1000 library in Python2.7 on RaspberryPi (Raspbian)

Thanks, but unfortunately the numpy code gives the same results. :( import ctypes import numpy as np from ctypes import * maxvalue = c_int16() device = c_int16() mydll = ctypes.CDLL('/opt/picoscope/lib/libpl1000.so') a=mydll.pl1000OpenUnit( byref(device)) print a, device a=mydll.pl1000MaxValue(devic...
by KrisHunt
Mon Mar 28, 2016 9:34 am
Forum: Linux
Topic: PL1000 library in Python2.7 on RaspberryPi (Raspbian)
Replies: 6
Views: 13554

Re: PL1000 library in Python2.7 on RaspberryPi (Raspbian)

Thank you,
I think you're right
but unfortunately the result code is the same.
:(
by KrisHunt
Mon Mar 28, 2016 8:20 am
Forum: Linux
Topic: PL1000 library in Python2.7 on RaspberryPi (Raspbian)
Replies: 6
Views: 13554

PL1000 library in Python2.7 on RaspberryPi (Raspbian)

Hi, I'm having difficulty using the pl1000.SetInterval function when trying to get data from my Picolog 1216. I suspect the 'channel' array format is incorrect as it is giving a return code decimal 16. Can anyone help with this? Thanks! import ctypes from ctypes import * from array import array c_ha...