Connecting an Instrument using icdevice

5 views (last 30 days)
Yuhang
Yuhang on 1 Jul 2025
Commented: Neil Hamilton on 2 Jul 2025
Hi all,
I'm and trying to connect a working device PicoScope 2405A,3405D MSO,4824A and 5444D to Matlab R2024b on Windows 11.
I have successfully downloaded PicoSDK_64_11.1.0.418 and the PicoScope Series A API MATLAB Generic Instrument Driver for these instruments, and added the file paths to MATLAB. The file address of the SDK is 'C:\Program Files\Pico Technology\SDK', and the file address of the Generic Instrument Driver is 'D:\MATLAB\MATLAB\PicoSupport'.
The contents of the SDK folder are:
As an example, the contents of the extension folder for the 3000 series are(The address of this folder is'D:\MATLAB\MATLAB\PicoSupport\ps3000a\win64'):
There is an issue that the 'ps3000a.dll' file has two addresses ('d:\MATLAB\MATLAB\PicoSupport\ps3000a\win64' and 'C:\Program Files\Pico Technology\SDK\lib'), as both folders contain this file simultaneously.
But, when trying to run PS3000A_ID_Block_Example.m script, which is an example script given by Pico, I get the following error messege:
Copyright © 2014-2017 Pico Technology Ltd. All rights reserved.
PicoScope 3000 Series MATLAB Instrument Driver
Error using PS3000A_ID_Block_Example (line 71)
Operation failed: An error occurred while executing the driver disconnect code.
Indexing with a dot is not supported for variables of this type.
If this error is not an instrument error, use MIDEDIT to inspect the driver.
The line failing is:
ps3000aDeviceObj = icdevice('picotech_ps3000a_generic.mdd', '');
Any help would be appreciated,
Many thanks!
Zhu Yuhang
  1 Comment
Neil Hamilton
Neil Hamilton on 2 Jul 2025
Have you got the PicoScope Support Toolbox addon as well as the instrument drivers for the specific series?
Also I don't think the dll file should be in the folder with the files for the examples and it isn't a part of the files on the github repository for the PicoScope 3000 Series A API MATLAB Generic Instrument Driver.

Sign in to comment.

Answers (0)

Products


Release

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!