Test and Measurement Forum

PicoScope 2206 with 64-bit MATLAB

Post your MATLAB discussions here

PicoScope 2206 with 64-bit MATLAB

Postby sebastien.popoff » Wed Jul 10, 2013 6:33 pm

Hi,

I just bought a picoscope 2206 to use it with matlab. Unfortunately, I just noticed that the 2000 series drivers are not compatible with the 2206 model.

How I can hope to control it with matlab (64 bits)?

Thanks,

Sebastien
sebastien.popoff
Newbie
 
Posts: 0
Joined: Wed Jul 10, 2013 6:30 pm

Re: PicoScope 2000 MATLAB Instrument Driver - Alpha Release

Postby Hitesh » Thu Jul 11, 2013 3:55 pm

Hi Sebastien,

You can create your own script to control the PicoScope 2206. I have attached an example that I helped a Customer with some time ago. You will need the 64-bit PS2000a.dll from the PicoScope 2000a Software Development Kit (ideally in the same directory as the script).

MATLAB 2000a Example.zip
MATLAB 2000a Block and Signal Generator example
(8.12 KiB) Downloaded 185 times


An instrument driver might be available later in the year.

I hope this helps.
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2063
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: PicoScope 2000 MATLAB Instrument Driver - Alpha Release

Postby sebastien.popoff » Thu Jul 18, 2013 6:54 pm

Thank you Hitesh!

I will test that very soon.
sebastien.popoff
Newbie
 
Posts: 0
Joined: Wed Jul 10, 2013 6:30 pm

Re: PicoScope 2000 MATLAB Instrument Driver - Alpha Release

Postby sebastien.popoff » Fri Sep 06, 2013 7:07 pm

Hi Hitesh,

I tried to use the code you gave but I have some issues. I tried matlab 2012a and 2013b 64 bits with Microsoft SDK 7.1 compiler and I get the following error:

Code: Select all
Error using loadlibrary (line 418)
The function call type stdcall is not supported


What did I do wrong?

Thanks,
sebastien.popoff
Newbie
 
Posts: 0
Joined: Wed Jul 10, 2013 6:30 pm

Re: PicoScope 2000 MATLAB Instrument Driver - Alpha Release

Postby Hitesh » Mon Sep 09, 2013 11:19 am

Hi Sebastien,

The Instrument Driver requires different prototype files as well as dll files generated by MATLAB for use with the 64-bit version.

I have attached a zip file with the files you need - copy these into the same directory as the Instrument Driver or add the location to your MATLAB path.

PicoScope2000_x64.zip
64-bit files for MATLAB plus updated mdd file.
(459.98 KiB) Downloaded 139 times


Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2063
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: PicoScope 2000 MATLAB Instrument Driver - Alpha Release

Postby sebastien.popoff » Mon Sep 09, 2013 6:18 pm

Thank you Hitesh,

It seems that the names of the functions and the way to use them has changed compared to the example from the previous files you gave. In particular, I am not sure how to get the handle number of the device.

The function ps2000_open_unit only returns one variable (compared to two in with previous files) that is always 0 for me. All the other functions requires the handle to communicate with the device, so I cannot send any instruction.

I checked that the device is working with the PicoScope 6 software.

Do you have an example code for the new drivers? If not, can you tell me how to get the correct handle id?

Thanks you for your help,

Sebastien
sebastien.popoff
Newbie
 
Posts: 0
Joined: Wed Jul 10, 2013 6:30 pm

Re: PicoScope 2000 MATLAB Instrument Driver - Alpha Release

Postby Hitesh » Tue Sep 10, 2013 8:32 am

Hi Sebastien,

Apologies, I didn't look further up the thread to see that you have a 2206 which requires the PS2000a.dll (the thread is for the older 2000 series devices).

I've attached some code which I helped another Customer with a while back. You will still need the 64-bit drivers from the ps2000a SDK kit.

You will need to generate your own prototype file:

Code: Select all
loadlibrary 'PS2000a.dll' 'ps2000aApi.h' mfilename 'PS2000aMFile;
unloadlibrary('PS2000a');


PS2206_script.m
Example MATLAB script
(7.61 KiB) Downloaded 107 times


I hope this helps.
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2063
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: PicoScope 2000 MATLAB Instrument Driver - Alpha Release

Postby sebastien.popoff » Tue Sep 10, 2013 2:08 pm

Hi Hitesh,

I do not understand, this is the same file you gave me initially (July 11 post) and I still have the error:

Code: Select all
Error using loadlibrary (line 418)
The function call type stdcall is not supported


What do you mean by I need to generate my own prototype file. I really do not understand the code you gave:

Code: Select all
loadlibrary 'PS2000a.dll' 'ps2000aApi.h' mfilename 'PS2000aMFile;
unloadlibrary('PS2000a');


I have:

Code: Select all
loadlibrary('PS2000a.dll','PS2000aMFile');
sebastien.popoff
Newbie
 
Posts: 0
Joined: Wed Jul 10, 2013 6:30 pm

Re: PicoScope 2000 MATLAB Instrument Driver - Alpha Release

Postby Hitesh » Tue Sep 10, 2013 2:23 pm

Hi Sebastien,

The PS2000aMFile in the zip file is for a 32-bit version of MATLAB which is why you are getting the error. Given that you have a 64-bit version of MATLAB, you need to create a new PS2000aMFile and the way to do it is as described in my previous post i.e.

1. Create the new PS2000aMFile by calling the loadlibrary function.
2. Unload the PS2000a library so you can then run the script.

If you have run this successfully, you should find MATLAB generates some other files such as PS2000a_thunk_pcwin64.dll

The following articles should help to explain things:

http://www.mathworks.co.uk/help/matlab/ref/loadlibrary.html

http://www.mathworks.co.uk/help/matlab/matlab_external/prototype-files.html

Please note that Pico Technology is not responsible for the content of external sites.

Once you have created this new file, you should then be able to run the script.

I hope this helps.
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2063
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: PicoScope 2000 MATLAB Instrument Driver - Alpha Release

Postby sebastien.popoff » Tue Sep 10, 2013 4:02 pm

Thanks again for your help Hitesh,

So I tried to generate the protoype file as you suggested, I used:

Code: Select all
loadlibrary('PS2000a.dll','ps2000aApi.h','mfilename','PS2000aMFile');


I took the files PicoIpp.dll, ps2000a.dll and PS2000A.lib from the x64 folder of the drivers and the header files from the main folder. I have the following errors:

Code: Select all
Warning: The library name case did not match the file name.
The library will be named "ps2000a".
> In loadlibrary at 175
Warning: Warnings messages were produced while parsing.  Check the functions you
intend to use for correctness.  Warning text can be viewed using:
[notfound,warnings]=loadlibrary(...)
> In loadlibrary at 343
Error loading library intermediate output follows.
The actual error is at the end of this output.
*********

Type 'u_int64_t' was not found.  Defaulting to type error.

Found on line 6691 of input from line 885 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\ps2000aApi.h
*********
Error using loadlibrary (line 418)
Building ps2000a_thunk_pcwin64 failed.  Compiler output is:
cl -I"C:\Program Files\MATLAB\R2013b\extern\include"   /W3  /D_CRT_SECURE_NO_DEPRECATE
/D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0  /nologo
-I"C:\Users\Caolab\Desktop\Picoscope\P2206_working"
-I"C:\Users\Caolab\Desktop\Picoscope\P2206_working" "ps2000a_thunk_pcwin64.c" -LD
-Fe"ps2000a_thunk_pcwin64.dll"
ps2000a_thunk_pcwin64.c
c:\users\caolab\desktop\picoscope\p2206_working\ps2000aApi.h(54) : error C2628:
'int64_t' followed by '__int64' is illegal (did you forget a ';'?)
c:\users\caolab\desktop\picoscope\p2206_working\ps2000aApi.h(54) : warning C4091:
'typedef ' : ignored on left of '_Longlong' when no variable is declared
c:\users\caolab\desktop\picoscope\p2206_working\ps2000aApi.h(883) : error C2146:
syntax error : missing ')' before identifier 'holdoff'
c:\users\caolab\desktop\picoscope\p2206_working\ps2000aApi.h(883) : error C2081:
'u_int64_t' : name in formal parameter list illegal
c:\users\caolab\desktop\picoscope\p2206_working\ps2000aApi.h(883) : error C2061:
syntax error : identifier 'holdoff'
c:\users\caolab\desktop\picoscope\p2206_working\ps2000aApi.h(883) : error C2059:
syntax error : ';'
c:\users\caolab\desktop\picoscope\p2206_working\ps2000aApi.h(883) : error C2059:
syntax error : ','
c:\users\caolab\desktop\picoscope\p2206_working\ps2000aApi.h(885) : error C2059:
syntax error : ')'
ps2000a_thunk_pcwin64.c(859) : error C2065: 'u_int64_t' : undeclared identifier
ps2000a_thunk_pcwin64.c(859) : error C2146: syntax error : missing ';' before
identifier 'p1'
ps2000a_thunk_pcwin64.c(859) : error C2065: 'p1' : undeclared identifier
ps2000a_thunk_pcwin64.c(860) : error C2275: 'PS2000A_HOLDOFF_TYPE' : illegal use of
this type as an expression
        c:\users\caolab\desktop\picoscope\p2206_working\ps2000aApi.h(421) : see
        declaration of 'PS2000A_HOLDOFF_TYPE'
ps2000a_thunk_pcwin64.c(860) : error C2146: syntax error : missing ';' before
identifier 'p2'
ps2000a_thunk_pcwin64.c(860) : error C2065: 'p2' : undeclared identifier
ps2000a_thunk_pcwin64.c(863) : error C2065: 'p1' : undeclared identifier
ps2000a_thunk_pcwin64.c(863) : error C2065: 'u_int64_t' : undeclared identifier
ps2000a_thunk_pcwin64.c(863) : error C2143: syntax error : missing ')' before 'const'
ps2000a_thunk_pcwin64.c(863) : error C2100: illegal indirection
ps2000a_thunk_pcwin64.c(863) : error C2059: syntax error : ')'
ps2000a_thunk_pcwin64.c(864) : error C2065: 'p1' : undeclared identifier
ps2000a_thunk_pcwin64.c(864) : error C2065: 'p1' : undeclared identifier
ps2000a_thunk_pcwin64.c(864) : error C2065: 'p1' : undeclared identifier
ps2000a_thunk_pcwin64.c(865) : error C2065: 'p2' : undeclared identifier
ps2000a_thunk_pcwin64.c(866) : error C2065: 'p2' : undeclared identifier
ps2000a_thunk_pcwin64.c(866) : error C2065: 'p2' : undeclared identifier
ps2000a_thunk_pcwin64.c(866) : error C2065: 'p2' : undeclared identifier
ps2000a_thunk_pcwin64.c(867) : error C2059: syntax error : ','
ps2000a_thunk_pcwin64.c(867) : error C2146: syntax error : missing ')' before
identifier 'u_int64_t'
ps2000a_thunk_pcwin64.c(867) : error C2146: syntax error : missing ')' before
identifier 'u_int64_t'
ps2000a_thunk_pcwin64.c(867) : error C2065: 'u_int64_t' : undeclared identifier
ps2000a_thunk_pcwin64.c(867) : error C2059: syntax error : 'type'


A protoype file is still generated, but when I try to load the library using:

Code: Select all
loadlibrary('PS2000a.dll','PS2000aMFile');


I have again:

Code: Select all
Warning: The library name case did not match the file name.
The library will be named "ps2000a".
> In loadlibrary at 175
Error using loadlibrary (line 418)
The specified module could not be found.
sebastien.popoff
Newbie
 
Posts: 0
Joined: Wed Jul 10, 2013 6:30 pm

Re: PicoScope 2000 MATLAB Instrument Driver - Alpha Release

Postby Hitesh » Wed Sep 11, 2013 9:16 am

Hi Sebastien,

The warning is because the dll is 'ps2000a.dll' instead of 'PS2000a.dll' so you can change that in your loadlibrary command.

You can add the following to the header file after the following section in the header file

Code: Select all
#else
   /* Define a 64-bit integer type */
   #include <stdint.h>
   typedef int64_t __int64;

// Add this to the header file
#ifndef _WIN64
   typedef int64_t __int64;
#endif
   typedef uint64_t u_int64_t;


I have attached a file I generated and the library loads successfully.

PS2000aMFile.m
Prototype file for 64-bit MATLAB
(29.78 KiB) Downloaded 95 times


Best wishes,

Hitesh
Last edited by Hitesh on Wed Sep 11, 2013 4:56 pm, edited 1 time in total.
Reason: Updated protoype file following recommended change to header file
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2063
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: PicoScope 2000 MATLAB Instrument Driver - Alpha Release

Postby sebastien.popoff » Wed Sep 11, 2013 11:22 pm

Hi Hitesh,

Thank yo uagain for your help, I really appreciate and I am really sorry to bother you again, but I have a huge error message when I try to load the librairy. I used:

Code: Select all
loadlibrary('ps2000a.dll','PS2000aMFile.m');


and I have:

Code: Select all
Warning: Warnings messages were produced while parsing.  Check the functions you
intend to use for correctness.  Warning text can be viewed using:
[notfound,warnings]=loadlibrary(...)
> In loadlibrary at 343
Error loading library intermediate output follows.
The actual error is at the end of this output.
*********

Type 'fcns=' was not found.  Defaulting to type error.

Found on line 9 of input from line 8 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Failed to parse type '' name '' original input '' name ''
Found on line 9 of input from line 8 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Type 'ival' was not found.  Defaulting to type error.

Found on line 9 of input from line 8 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Failed to parse type '' calltype '' original input '' calltype ''
Found on line 9 of input from line 8 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Type 'ival' was not found.  Defaulting to type error.

Found on line 9 of input from line 8 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Failed to parse type '' LHS '' original input '' LHS ''
Found on line 9 of input from line 8 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Type 'ival' was not found.  Defaulting to type error.

Found on line 9 of input from line 8 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Failed to parse type '' RHS '' original input '' RHS ''
Found on line 9 of input from line 8 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Type 'ival' was not found.  Defaulting to type error.

Found on line 9 of input from line 8 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Failed to parse type '' alias '' original input '' alias ''
Found on line 9 of input from line 8 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Type 'ival' was not found.  Defaulting to type error.

Found on line 9 of input from line 8 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Failed to parse type '' thunkname '' original input '' thunkname ''
Found on line 9 of input from line 8 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Type 'ival' was not found.  Defaulting to type error.

Found on line 9 of input from line 8 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'MfilePath=' was not found.  Defaulting to type error.

Found on line 10 of input from line 9 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'ThunkLibName=' was not found.  Defaulting to type error.

Found on line 11 of input from line 10 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'MfilePath' was not found.  Defaulting to type error.

Found on line 11 of input from line 10 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Failed to parse type '' ps2000a_thunk_pcwin64 '' original input '' ps2000a_thunk_pcwin64 ''
Found on line 11 of input from line 10 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function fullfile function may be invalid.

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 12 of input from line 11 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 14 of input from line 13 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 16 of input from line 15 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 18 of input from line 17 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PICO_INFO' was not found.  Defaulting to type error.

Found on line 18 of input from line 17 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 20 of input from line 19 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 22 of input from line 21 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 24 of input from line 23 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 26 of input from line 25 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_CHANNEL' was not found.  Defaulting to type error.

Found on line 26 of input from line 25 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_COUPLING' was not found.  Defaulting to type error.

Found on line 26 of input from line 25 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_RANGE' was not found.  Defaulting to type error.

Found on line 26 of input from line 25 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 28 of input from line 27 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_DIGITAL_PORT' was not found.  Defaulting to type error.

Found on line 28 of input from line 27 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 30 of input from line 29 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 32 of input from line 31 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 34 of input from line 33 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 36 of input from line 35 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_SWEEP_TYPE' was not found.  Defaulting to type error.

Found on line 36 of input from line 35 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_EXTRA_OPERATIONS' was not found.  Defaulting to type error.

Found on line 36 of input from line 35 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_INDEX_MODE' was not found.  Defaulting to type error.

Found on line 36 of input from line 35 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_SIGGEN_TRIG_TYPE' was not found.  Defaulting to type error.

Found on line 36 of input from line 35 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_SIGGEN_TRIG_SOURCE' was not found.  Defaulting to type error.

Found on line 36 of input from line 35 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 38 of input from line 37 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_SWEEP_TYPE' was not found.  Defaulting to type error.

Found on line 38 of input from line 37 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_EXTRA_OPERATIONS' was not found.  Defaulting to type error.

Found on line 38 of input from line 37 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_SIGGEN_TRIG_TYPE' was not found.  Defaulting to type error.

Found on line 38 of input from line 37 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_SIGGEN_TRIG_SOURCE' was not found.  Defaulting to type error.

Found on line 38 of input from line 37 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 40 of input from line 39 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 42 of input from line 41 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_ETS_MODE' was not found.  Defaulting to type error.

Found on line 42 of input from line 41 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 44 of input from line 43 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_CHANNEL' was not found.  Defaulting to type error.

Found on line 44 of input from line 43 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_THRESHOLD_DIRECTION' was not found.  Defaulting to type error.

Found on line 44 of input from line 43 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 46 of input from line 45 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_DIGITAL_CHANNEL_DIRECTIONSPtr' was not found.  Defaulting to type voidPtr.

Found on line 46 of input from line 45 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 48 of input from line 47 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_TRIGGER_OPERAND' was not found.  Defaulting to type error.

Found on line 48 of input from line 47 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 50 of input from line 49 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_TRIGGER_CHANNEL_PROPERTIESPtr' was not found.  Defaulting to type voidPtr.

Found on line 50 of input from line 49 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 52 of input from line 51 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_TRIGGER_CONDITIONSPtr' was not found.  Defaulting to type voidPtr.

Found on line 52 of input from line 51 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 54 of input from line 53 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_THRESHOLD_DIRECTION' was not found.  Defaulting to type error.

Found on line 54 of input from line 53 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_THRESHOLD_DIRECTION' was not found.  Defaulting to type error.

Found on line 54 of input from line 53 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_THRESHOLD_DIRECTION' was not found.  Defaulting to type error.

Found on line 54 of input from line 53 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_THRESHOLD_DIRECTION' was not found.  Defaulting to type error.

Found on line 54 of input from line 53 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_THRESHOLD_DIRECTION' was not found.  Defaulting to type error.

Found on line 54 of input from line 53 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_THRESHOLD_DIRECTION' was not found.  Defaulting to type error.

Found on line 54 of input from line 53 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 56 of input from line 55 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 58 of input from line 57 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_PWQ_CONDITIONSPtr' was not found.  Defaulting to type voidPtr.

Found on line 58 of input from line 57 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_THRESHOLD_DIRECTION' was not found.  Defaulting to type error.

Found on line 58 of input from line 57 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_PULSE_WIDTH_TYPE' was not found.  Defaulting to type error.

Found on line 58 of input from line 57 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 60 of input from line 59 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 62 of input from line 61 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_TIME_UNITSPtr' was not found.  Defaulting to type voidPtr.

Found on line 62 of input from line 61 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 64 of input from line 63 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_TIME_UNITSPtr' was not found.  Defaulting to type voidPtr.

Found on line 64 of input from line 63 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 66 of input from line 65 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_TIME_UNITSPtr' was not found.  Defaulting to type voidPtr.

Found on line 66 of input from line 65 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 68 of input from line 67 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_TIME_UNITSPtr' was not found.  Defaulting to type voidPtr.

Found on line 68 of input from line 67 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 70 of input from line 69 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 72 of input from line 71 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 74 of input from line 73 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_RATIO_MODE' was not found.  Defaulting to type error.

Found on line 74 of input from line 73 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 76 of input from line 75 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_RATIO_MODE' was not found.  Defaulting to type error.

Found on line 76 of input from line 75 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 78 of input from line 77 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 80 of input from line 79 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 82 of input from line 81 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 84 of input from line 83 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'ps2000aBlockReady' was not found.  Defaulting to type error.

Found on line 84 of input from line 83 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 86 of input from line 85 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_TIME_UNITS' was not found.  Defaulting to type error.

Found on line 86 of input from line 85 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_RATIO_MODE' was not found.  Defaulting to type error.

Found on line 86 of input from line 85 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 88 of input from line 87 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'ps2000aStreamingReady' was not found.  Defaulting to type error.

Found on line 88 of input from line 87 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 90 of input from line 89 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 92 of input from line 91 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_RATIO_MODE' was not found.  Defaulting to type error.

Found on line 92 of input from line 91 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 94 of input from line 93 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_RATIO_MODE' was not found.  Defaulting to type error.

Found on line 94 of input from line 93 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 96 of input from line 95 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_RATIO_MODE' was not found.  Defaulting to type error.

Found on line 96 of input from line 95 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 98 of input from line 97 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 100 of input from line 99 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_RATIO_MODE' was not found.  Defaulting to type error.

Found on line 100 of input from line 99 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 102 of input from line 101 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_RATIO_MODE' was not found.  Defaulting to type error.

Found on line 102 of input from line 101 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 104 of input from line 103 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 106 of input from line 105 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'u_int64_t' was not found.  Defaulting to type error.

Found on line 106 of input from line 105 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_HOLDOFF_TYPE' was not found.  Defaulting to type error.

Found on line 106 of input from line 105 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 108 of input from line 107 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_CHANNEL_INFO' was not found.  Defaulting to type error.

Found on line 108 of input from line 107 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 110 of input from line 109 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 112 of input from line 111 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 114 of input from line 113 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 116 of input from line 115 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 118 of input from line 117 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_RANGE' was not found.  Defaulting to type error.

Found on line 118 of input from line 117 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'PS2000A_COUPLING' was not found.  Defaulting to type error.

Found on line 118 of input from line 117 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type '%PICO_STATUS' was not found.  Defaulting to type error.

Found on line 120 of input from line 119 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Type 'intstructs.tPS2000ATriggerConditions.members=' was not found.  Defaulting to type error.

Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Failed to parse type '' channelA '' original input '' channelA ''
Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ATriggerState '' original input ' ' enPS2000ATriggerState ''
Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' channelB '' original input ' ' channelB ''
Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ATriggerState '' original input ' ' enPS2000ATriggerState ''
Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' channelC '' original input ' ' channelC ''
Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ATriggerState '' original input ' ' enPS2000ATriggerState ''
Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' channelD '' original input ' ' channelD ''
Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ATriggerState '' original input ' ' enPS2000ATriggerState ''
Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' external '' original input ' ' external ''
Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ATriggerState '' original input ' ' enPS2000ATriggerState ''
Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' aux '' original input ' ' aux ''
Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ATriggerState '' original input ' ' enPS2000ATriggerState ''
Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' pulseWidthQualifier '' original input ' ' pulseWidthQualifier ''
Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ATriggerState '' original input ' ' enPS2000ATriggerState ''
Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' digital '' original input ' ' digital ''
Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ATriggerState '' original input ' ' enPS2000ATriggerState ''
Found on line 123 of input from line 122 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Type 'intstructs.tPS2000APwqConditions.members=' was not found.  Defaulting to type error.

Found on line 125 of input from line 124 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Failed to parse type '' channelA '' original input '' channelA ''
Found on line 125 of input from line 124 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ATriggerState '' original input ' ' enPS2000ATriggerState ''
Found on line 125 of input from line 124 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' channelB '' original input ' ' channelB ''
Found on line 125 of input from line 124 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ATriggerState '' original input ' ' enPS2000ATriggerState ''
Found on line 125 of input from line 124 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' channelC '' original input ' ' channelC ''
Found on line 125 of input from line 124 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ATriggerState '' original input ' ' enPS2000ATriggerState ''
Found on line 125 of input from line 124 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' channelD '' original input ' ' channelD ''
Found on line 125 of input from line 124 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ATriggerState '' original input ' ' enPS2000ATriggerState ''
Found on line 125 of input from line 124 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' external '' original input ' ' external ''
Found on line 125 of input from line 124 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ATriggerState '' original input ' ' enPS2000ATriggerState ''
Found on line 125 of input from line 124 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' aux '' original input ' ' aux ''
Found on line 125 of input from line 124 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ATriggerState '' original input ' ' enPS2000ATriggerState ''
Found on line 125 of input from line 124 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' digital '' original input ' ' digital ''
Found on line 125 of input from line 124 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ATriggerState '' original input ' ' enPS2000ATriggerState ''
Found on line 125 of input from line 124 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Type 'intstructs.tPS2000ADigitalChannelDirections.members=' was not found.  Defaulting to type error.

Found on line 127 of input from line 126 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Failed to parse type '' channel '' original input '' channel ''
Found on line 127 of input from line 126 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ADigitalChannel '' original input ' ' enPS2000ADigitalChannel ''
Found on line 127 of input from line 126 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' direction '' original input ' ' direction ''
Found on line 127 of input from line 126 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000ADigitalDirection '' original input ' ' enPS2000ADigitalDirection ''
Found on line 127 of input from line 126 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Type 'intstructs.tPS2000ATriggerChannelProperties.members=' was not found.  Defaulting to type error.

Found on line 129 of input from line 128 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Failed to parse type '' thresholdUpper '' original input '' thresholdUpper ''
Found on line 129 of input from line 128 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' int16 '' original input ' ' int16 ''
Found on line 129 of input from line 128 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' thresholdUpperHysteresis '' original input ' ' thresholdUpperHysteresis ''
Found on line 129 of input from line 128 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' uint16 '' original input ' ' uint16 ''
Found on line 129 of input from line 128 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' thresholdLower '' original input ' ' thresholdLower ''
Found on line 129 of input from line 128 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' int16 '' original input ' ' int16 ''
Found on line 129 of input from line 128 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' thresholdLowerHysteresis '' original input ' ' thresholdLowerHysteresis ''
Found on line 129 of input from line 128 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' uint16 '' original input ' ' uint16 ''
Found on line 129 of input from line 128 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' channel '' original input ' ' channel ''
Found on line 129 of input from line 128 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000AChannel '' original input ' ' enPS2000AChannel ''
Found on line 129 of input from line 128 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' thresholdMode '' original input ' ' thresholdMode ''
Found on line 129 of input from line 128 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Failed to parse type '' enPS2000A_ThresholdMode '' original input ' ' enPS2000A_ThresholdMode ''
Found on line 129 of input from line 128 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

Type 'intenuminfo.enPS2000AHoldOffType=' was not found.  Defaulting to type error.

Found on line 130 of input from line 129 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m

Failed to parse type '' PS2000A_TIME '' original input '' PS2000A_TIME ''
Found on line 130 of input from line 129 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
Error parsing argument for function struct function may be invalid.

.... I cut a lot here.....

Found on line 152 of input from line 151 of file C:\\Users\\Caolab\\Desktop\\Picoscope\\P2206_working\\PS2000aMFile.m
*********
Error using loadlibrary (line 418)
Building ps2000a_thunk_pcwin64 failed.  Compiler output is:
cl -I"C:\Program Files\MATLAB\R2013b\extern\include"   /W3  /D_CRT_SECURE_NO_DEPRECATE
/D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0  /nologo
-I"C:\Users\Caolab\Desktop\Picoscope\P2206_working"
-I"C:\Users\Caolab\Desktop\Picoscope\P2206_working" "ps2000a_thunk_pcwin64.c" -LD
-Fe"ps2000a_thunk_pcwin64.dll"
ps2000a_thunk_pcwin64.c
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(1) : error C2065:
'methodinfo' : undeclared identifier
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(1) : error C2057:
expected constant expression
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(1) : error C2466:
cannot allocate an array of constant size 0
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(1) : error C2143:
syntax error : missing ']' before ','
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(1) : error C2133:
'function' : unknown size
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(1) : error C2143:
syntax error : missing ';' before ']'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(2) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(5) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(6) : error C2059:
syntax error : '%'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(7) : error C2059:
syntax error : '['
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(8) : error C2332:
'struct' : missing tag name
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(8) : error C2059:
syntax error : 'type'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(8) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(8) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(8) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(9) : warning C4013:
'fileparts' undefined; assuming extern returning int
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(9) : warning C4013:
'mfilename' undefined; assuming extern returning int
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(9) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(9) : error C2099:
initializer is not a constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(10) : warning C4013:
'fullfile' undefined; assuming extern returning int
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(10) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(10) : error C2099:
initializer is not a constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(11) : error C2059:
syntax error : '%'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2374:
'fcnNum' : redefinition; multiple initialization
        C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(7) : see
        declaration of 'fcnNum'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(12) : error C2099:
initializer is not a constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(13) : error C2059:
syntax error : '%'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2374:
'fcnNum' : redefinition; multiple initialization
        C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(7) : see
        declaration of 'fcnNum'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(14) : error C2099:
initializer is not a constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(15) : error C2059:
syntax error : '%'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2374:
'fcnNum' : redefinition; multiple initialization
        C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(7) : see
        declaration of 'fcnNum'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(16) : error C2099:
initializer is not a constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(17) : error C2059:
syntax error : '%'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(18) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(18) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(18) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(18) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(18) : error C2143:
syntax error : missing '{' before '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(18) : error C2059:
syntax error : '.'
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(18) : error C2513:
'/*global*/ ' : no variable declared before '='
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(18) : error C2015: too
many characters in constant
C:\Users\Caolab\Desktop\Picoscope\P2206_working\PS2000aMFile.m(18) : fatal error
C1003: error count exceeds 100; stopping compilation


I had to cut it a lots since the size of the text for one post is limited by the forum.

This was with the file you sent. If I try yo generate myself the prototype file with the modified header, I have the following error:

Code: Select all
Error using loadlibrary (line 419)
Building ps2000a_thunk_pcwin64 failed.  Compiler output is:
cl -I"C:\Program Files\MATLAB\R2012b\extern\include"   /W3  /D_CRT_SECURE_NO_DEPRECATE
/D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0  /nologo
-I"C:\Users\Caolab\Desktop\Picoscope\P2206_working"
-I"C:\Users\Caolab\Desktop\Picoscope\P2206_working" "ps2000a_thunk_pcwin64.c" -LD
-Fe"ps2000a_thunk_pcwin64.dll"
ps2000a_thunk_pcwin64.c
c:\users\caolab\desktop\picoscope\p2206_working\ps2000aApi.h(54) : error C2628: 'int64_t'
followed by '__int64' is illegal (did you forget a ';'?)
c:\users\caolab\desktop\picoscope\p2206_working\ps2000aApi.h(54) : warning C4091:
'typedef ' : ignored on left of '_Longlong' when no variable is declared


Regards,

Sebastien
sebastien.popoff
Newbie
 
Posts: 0
Joined: Wed Jul 10, 2013 6:30 pm

PicoScope 2000 MATLAB Instrument Driver - Alpha Release

Postby Hitesh » Fri Sep 13, 2013 9:10 am

Hi Sebastien,

I've attached a zip file containing the files that I generated - you should be able to run the example script I sent without having to generate your own prototype file. There is also a test script for you to try.

ps2000a_thunk_pcwin64.zip
PS2000a Files for MATLAB 64-bit
(2.24 MiB) Downloaded 109 times


I have tested this successfully with a PicoScope 2207 with MATLAB 2012b 64-bit.

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2063
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: PicoScope 2000 MATLAB Instrument Driver - Alpha Release

Postby sebastien.popoff » Fri Sep 13, 2013 10:26 pm

Hi Hitesh,

I still have the same huge error message I posted before (with Matlab 2012a 64). I have a PS2206 not a PS2207, can it be the issue? What is the compiler you set up in mex?

Regards,

Sebastien
sebastien.popoff
Newbie
 
Posts: 0
Joined: Wed Jul 10, 2013 6:30 pm

Re: PicoScope 2000 MATLAB Instrument Driver - Alpha Release

Postby sebastien.popoff » Sat Sep 14, 2013 11:42 am

Hi Hitesh,

That is OK, I can load the library now!

The last error was just some issue to found the prototype, my bad. I also had to change a bit the example script but it is fine.

I have a question though, when I try to retrieve the voltage from the device. I use the adc2mv.m to get the real voltage but even without anything connected to the channel, I get huge variations (~15000 mV!). We see that the signal just jumps between two close values but before converting to mV, instead of jumping between 0 and -1 for example, it jumps between 0 and -256. Do I have some issue with the number of bits? How is the signal encoded?

Thanks you for your help and your patience,

Sebastien
sebastien.popoff
Newbie
 
Posts: 0
Joined: Wed Jul 10, 2013 6:30 pm

Next

Return to MATLAB

Who is online

Users browsing this forum: No registered users and 0 guests