PicoScope 7 Software
Available on Windows, Mac and Linux
Code: Select all
loadlibrary('/opt/picoscope/lib/libps6000.so.2.0.0','/opt/picoscope/include/libps6000-1.4/ps6000Api.h','alias','lib')
We try to access the device via a call to OpenUnit just as mdawkins suggested above:Warning: The data type 'FcnPtr' used by function ps6000RunBlock does not exist.
> In loadlibrary at 403
Warning: The data type 'FcnPtr' used by function ps6000GetStreamingLatestValues does not exist.
> In loadlibrary at 403
Code: Select all
global data
data.unithandle=0;
data.serial = [];
calllib('lib','ps6000OpenUnit',data.unithandle,data.serial)
I don't think, the complete stack trace is needed, but here are some possibly interesting entries:------------------------------------------------------------------------
Abort signal detected at Tue May 13 09:06:07 2014
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Current Visual : 0x21 (class 4, depth 24)
Default Encoding: UTF-8
GNU C Library : 2.17 stable
MATLAB Root : /usr/local/matlab_classroom-8.0.0
MATLAB Version : 8.0.0.783 (R2012b)
Operating System: Linux 3.7.10-1.28-desktop #1 SMP PREEMPT Mon Feb 3 14:11:15 UTC 2014 (c9a2c6c) x86_64
Processor ID : x86 Family 31 Model 10 Stepping 0, AuthenticAMD
Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : The X.Org Foundation (11302000), display localhost:10.0
Fault Count: 1
I also downloaded the SDK R10.5.0.32 for windows but could only state that the header file 'ps6000Api.h' there is identical with the one we already have.[ 8] 0x00007fb4291c5719 /usr/local/matlab_classroom-8.0.0/bin/glnxa64/libmwmcr.so+00554777
[ 9] 0x00007fb4276b31f0 /lib64/libpthread.so.0+00061936
[ 10] 0x00007fb42732b3d5 /lib64/libc.so.6+00218069 gsignal+000053
[ 11] 0x00007fb42732c858 /lib64/libc.so.6+00223320 abort+000328
[ 12] 0x00007fb42736b44b /lib64/libc.so.6+00480331
[ 13] 0x00007fb427370fc6 /lib64/libc.so.6+00503750
[ 14] 0x00007fb427371d43 /lib64/libc.so.6+00507203
[ 15] 0x00007fb3ab88ce6b /usr/lib64/libusb-1.0.so.0+00015979 libusb_close+000139
[ 16] 0x00007fb3a97222b6 /opt/picoscope/lib/libps6000.so.2.0.0+00316086
[ 17] 0x00007fb3a97223c2 /opt/picoscope/lib/libps6000.so.2.0.0+00316354
[ 18] 0x00007fb3a97226cd /opt/picoscope/lib/libps6000.so.2.0.0+00317133
[ 19] 0x00007fb3a96e8c15 /opt/picoscope/lib/libps6000.so.2.0.0+00080917
[ 20] 0x00007fb3a96e8d1e /opt/picoscope/lib/libps6000.so.2.0.0+00081182
[ 21] 0x00007fb3a96ed058 /opt/picoscope/lib/libps6000.so.2.0.0+00098392 ps6000OpenUnit+000408
[ 22] 0x00007fb3aa1997b7 /tmp/tp7446932d_0356_4347_b595_9591b179b34e/lib_thunk_glnxa64.so+00006071 uint32voidPtrvoidPtrThunk+000071
[ 23] 0x00007fb3aaa0664a /usr/local/matlab_classroom-8.0.0/bin/glnxa64/libmwcli.so+00157258
Code: Select all
data.serial = blanks(20);
Code: Select all
data.serial = blanks(20);
Code: Select all
libfunctionsview('ps6000')