I do have quite some problems getting the example C codes to run. I already installed the ps2000a drivers and used the usbtest, which works. I then downloaded the relevant picosdk-c-example. The autogen.sh , however, seems to be broken for the provided example. For me it first crashes because it can't find "../install-sh". After i created a link, it then crashes because it can't find "../ltmain.sh". After moving ltmain.sh to said directory I get the following log/error:
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:31: installing '../compile'
configure.ac:31: installing '../config.guess'
configure.ac:31: installing '../config.sub'
configure.ac:10: installing '../missing'
Makefile.am: installing '../depcomp'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... configure: error: ls -t appears to fail. Make sure there is not a broken
alias in your environment
configure: error: newly created file is older than distributed files!
Check your system clock
Is this actually a problem with the autogen.sh or am I doing something wrong?
Could someone else try to prepare these build files?
usbtc08con-test.c: In function ‘main’:
usbtc08con-test.c:181:3: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
Sleep(200);
^
usbtc08con-test.c:272:7: warning: format ‘%lu’ expects argument of type ‘long unsigned int *’, but argument 2 has type ‘uint32_t *’ [-Wformat=]
scanf_s("%lu", &numberOfReadings);
^
For the warning related to the Sleep function, you may wish to check our linux-build-files folder to see how we configure and compile the code. The alternative is to delete the #define line and use usleep() instead of Sleep().
Hi,
recently I tried to install the pico on BeagleBoneBlack but had some problem.
device: pico2205A
BeagleBoneBlack rev C with debian8 (Jessie)
I had followed the instructions of the first post. But got the error msg:
Package libps2000 is not available. but is referred to by another package.
...
E: Package 'libps2000' has no installation candidate
That should be some simple mistake, since this is only thread I found and 4 years ago.
Please help!
Hi Hitesh,
additional problem about the driver.
After the last post I managed to install the lastest driver on BeagleboneBlack.
libps2000_2.1.6-3r05_armhf.deb
OS is Debian9 (Stretch). Plan to run Python example on it. (from picotech/picosdk-python-examples)
After install all (hope that is true) dependency and finally can do "from picosdk import ps2000". The pico2205A can not be found by simple test code.
>>> from picosdk import ps2000
>>> ps=ps2000.Device()
>>> st=ps.open_unit()
>>> st
3
>>> ps.info
{
}
Python 2.7.13
pico is connected and LED is on. BeagleboneBlack with 4dCAPE display running Debian9
Is the device visible when running the libusb command?
What is the result of the ./usbtest application which is in the /opt/picoscope/share/doc/libps2000 directory?
Regards,
Thanks for the quick reply! Hitesh
Did below:
debian@beaglebone:/opt/picoscope/share/doc/libps2000$ ls
Copyright usbtest
debian@beaglebone:/opt/picoscope/share/doc/libps2000$ usbtest
-bash: usbtest: command not found