icdevice Problem with SDK in MATLAB

Post your MATLAB discussions here
Post Reply
kernel
Newbie
Posts: 0
Joined: Thu May 04, 2023 6:57 am

icdevice Problem with SDK in MATLAB

Post by kernel »

Hello, I am recently trying to use MATLAB to operate Picoscope, model 5444D. My Matlab contains instrument control toolbox and I have installed support-toolbox and instrument-driver on MATLAB add-on and added them to Matlab PATH. In addition, I also installed the Picoscope SDK in C:\Program Files.

I tried two versions of Picoscope SDK, 10.7.24.276 and 10.6.10.22, 64-bit. I also tried two versions of MATLAB, R2018b and R2022b, 64-bit, but they contain the same problem.

When I paste all the '.dll' files from c-wrappers-binaries into the folder of SDK\lib and add the SDK to Matlab PATH, this problem appears:

Error using icdevice (line 316)
An error occurred while executing the driver create code.
There was an error loading the library "C.
If the error is not an instrument error, use MIDEDIT to inspect the driver.

Error in PS5000A_ID_Block_Example (line 34)
ps5000aDeviceObj = icdevice ('picotech_ps5000a_generic').


However, if I do not add the SDK to the path, I will get a problem like this:

Error using icdevice
An error occurred while executing the driver create code.
Error while loading library "ps5000a.dll"
The specified module could not be found.

If the error is not an instrument error, use MIDEDIT to inspect the driver.


Also, I am not sure if I need the contents of c-wrappers-binaries.

Could you please answer my question? Or, can you provide online support? Thank you for your help.

NeilH
PICO STAFF
PICO STAFF
Posts: 267
Joined: Tue Jul 18, 2017 8:28 am

Re: icdevice Problem with SDK in MATLAB

Post by NeilH »

Hi

Are you able to also put the .lib files from the C wrappers binaries repository into your SDK/lib folder and see if that resolves the MATLAB errors?

Neil
Neil
Technical Support Engineer

kernel
Newbie
Posts: 0
Joined: Thu May 04, 2023 6:57 am

Re: icdevice Problem with SDK in MATLAB

Post by kernel »

Hi Neil,

Oh yes, I've solved this problem using your solution. I also found that just add the folder ‘x64’ only into MATLAB PATH can solve this problem too.

Thank you for your support!

Post Reply