Problem Connecting to Picoscope in Compiled Matlab .exe

Post your MATLAB discussions here
Post Reply
AlanTheGenie
Newbie
Posts: 0
Joined: Thu Jun 18, 2015 6:31 pm

Problem Connecting to Picoscope in Compiled Matlab .exe

Post by AlanTheGenie »

I have a Matlab application for use with the Picoscope 3205A. When running it from the command line of Matlab everything works fine, however when I create executables using the Matlab compiler I can no longer connect to the Picoscope. I am using the same computer the whole time, there is no difference in installed drivers or hardware setup.

Screenshots of error messages attached.
2.PNG
2.PNG (3.81 KiB) Viewed 6226 times
1.PNG

Hitesh

Re: Problem Connecting to Picoscope in Compiled Matlab .exe

Post by Hitesh »

Hi AlanTheGenie,

Which versions of MATLAB and MATLAB Compiler are you using?

You may wish to take a look at the following MATLAB Answers article - it may relate to the use of the 'loadlibrary' in the Instrument Driver.

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

Thanks,

AlanTheGenie
Newbie
Posts: 0
Joined: Thu Jun 18, 2015 6:31 pm

Re: Problem Connecting to Picoscope in Compiled Matlab .exe

Post by AlanTheGenie »

Hi Hitesh,

I am using the latest versions of Matlab and compiler, R2015a. I looked at the link you provided, we are already using the prototype and thunk files provided in the Picoscope SDK for Matlab.

Hitesh

Re: Problem Connecting to Picoscope in Compiled Matlab .exe

Post by Hitesh »

Hi Alan,

Are the ps3000a.dll, picoipp.dll and ps3000aWrap.dll files in a location on the Windows PATH environment variable so that your executable can locate them?

Regards,

AlanTheGenie
Newbie
Posts: 0
Joined: Thu Jun 18, 2015 6:31 pm

Re: Problem Connecting to Picoscope in Compiled Matlab .exe

Post by AlanTheGenie »

Hi Hitesh,

They are included as part of the compiled Matlab executable, and we have also tried putting them on the Windows PATH env variable. No luck with either. From the console output, it appears to be finding everything and breaking on something when it loads ps3000aWrap_thunk_pcwin64. Just before that it looks like it had loaded ps3000_think_pcwin64 without any problems.

Hitesh

Re: Problem Connecting to Picoscope in Compiled Matlab .exe

Post by Hitesh »

Hi Alan,

The ps3000aWrap.dll does require the Microsoft Visual C++ 2010 Redistributable to be installed on the PC in order for MATLAB to load the library.

If this does not help, please e-mail support@picotech.com in order to discuss further options in order to resolve this.

Regards,

Post Reply