PicoScope 6404B MATLAB error

Post your MATLAB discussions here
Post Reply
labrat
Newbie
Posts: 0
Joined: Wed Jan 21, 2015 7:51 pm

PicoScope 6404B MATLAB error

Post by labrat »

Hello,

I am having an error when trying to get the PicoScope 6404B to work with MATLAB (R2014a 64-bit).
I have followed the instructions that were given in this forum and the youtube video.
Microsoft Windows SDK 7.1 was successfully installed and I was able to choose it with the 'mex -setup' command.
The PicoScope works perfectly well with the Picoscope 6 software, so I am quite sure it is not a hardware problem.
Here is the error I am receiving along with other information confirming that the PicoScope is recognized by the machine.

Code: Select all

>> mex -setup
MEX configured to use 'Microsoft Windows SDK 7.1 (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
	 variables with more than 2^32-1 elements. In the near future
	 you will be required to update your code to utilize the
	 new API. You can find more information about this at:
	 http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.

To choose a different C compiler, select one from the following:
Microsoft Visual C++ 2010 (C)  mex -setup:'D:\Program Files\MATLAB\R2014a\bin\win64\mexopts\msvc2010.xml' C
Microsoft Windows SDK 7.1 (C)  mex -setup:C:\Users\John\AppData\Roaming\MathWorks\MATLAB\R2014a\mex_C_win64.xml C

To choose a different language, select one from the following:
 mex -setup C++ 
 mex -setup FORTRAN
MEX configured to use 'Microsoft Windows SDK 7.1 (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
	 variables with more than 2^32-1 elements. In the near future
	 you will be required to update your code to utilize the
	 new API. You can find more information about this at:
	 http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
>> PS6000_IC_Generic_Driver_Block

Copyright (C) Pico Technology Ltd. 2014

PicoScope 6000 Series MATLAB Instrument Driver

Number of units found: 1

Serial number(s): AR892/044

Opening PicoScope 6000 Series device...

   Instrument Device Object Using Driver : picotech_ps6000_generic.mdd
 
   Instrument Information
      Type:               Oscilloscope
      Manufacturer:       Pico Technology Ltd.
      Model:              PicoScope 6000 Series
 
   Driver Information
      DriverType:         MATLAB generic
      DriverName:         picotech_ps6000_generic.mdd
      DriverVersion:      1.0
 
   Communication State
      Status:             open

Setting Device Parameters...

Error using icdevice/connect (line 112)
An error occurred while executing the driver connect code.
One or more output arguments not assigned during call to "calllib".
If this error is not an instrument error, use MIDEDIT to inspect the driver.

Error in PS6000_IC_Generic_Driver_Block (line 40)
connect(ps6000DeviceObj);
 
>> 
I have copied the appropriate (64-bit) .dll files into the same folder as the 'PS6000_IC_Generic_Driver_Block' along with the wrapper and so forth.
Let me know if you need any other information from me.

I would very much appreciate your help in solving this problem.

Thanks in advance,

Ivan

Karunen
Advanced User
Advanced User
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am

Re: PicoScope 6404B MATLAB error

Post by Karunen »

Hi Ivan,

Please email support@picotech.com and I will send you the latest .mdd file which has fixed this issue.

Kind Regards,
Karunen

Technical Specialist
Pico Technology

Post Reply