Hi benamis,
You can obtain the files from https://github.com/picotech/picosdk-c-examples/tree/master/pl1000.
Regards,
Hitesh wrote:Hi alsamaree,
There is an incorrect reference to the PicoStatus.h file which this driver does not use.
I've updated the zip file in the post above so please download this and the source code file should have the fix.
Edit: The files are now available from GitHub:
https://github.com/picotech/picosdk-c-examples/tree/master/usbtc08
Please use the usbtc08con.c file from the usbtc08Con sub-folder.
Regards,
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
gcc -std=c99 -std=c11 -Wall -g -DONE=1 -I/opt/picoscope/include/ usbtc08con-test.c -L/opt/picoscope/lib/ -lusbtc08 -o test
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);
^
Hitesh wrote:Hi alsamaree,
Are there any error messages after those two warning messages?
Have you tried building our example source code file using the files from the linux-build-files folder?
You should be able to use the commands ./autogen.sh and make to build the application if you copy the usbtc08con.c file into the folder.
Regards,
./autogen.sh
make
scanf_s("%lu", &numberOfReadings);
scanf_s("%u", &numberOfReadings);
Users browsing this forum: No registered users and 1 guest