Connect PICO 3405D MSO using MATLAB R2021b
6 views (last 30 days)
Show older comments
Hi all,
I am trying to connect a properly functioning device —— PicoScope 3405D(MSO) to MATLAB R2021, running on Windows 11 Home Chinese Edition.
I have successfully downloaded PicoSDK_64_11.1.0.418, PicoScope Support Toolbox, and the PicoScope 3000 Series A API MATLAB Generic Instrument Driver for Pico 3405D MSO, and added the file paths to MATLAB.
The contents related to Pico 3405D MSO in the SDK\lib folder are as follows:

The contents of the extension folder for the 3000 Series are as follows (the address of the first image folder is 'E:\MATLAB\R2021b\PicoSupport\ps3000a', and the address of the second image folder is 'E:\MATLAB\R2021b\PicoSupport\ps3000a\win64'):


However, when trying to run the program I wrote by referring to the PS3000A_ID_Block_Example.m script (the example script provided by Pico),

I received the following error message:
Error using instrument/delete (line 82)
Operation failed: An error occurred while executing the driver disconnect code.
Dot-based indexing is not supported for variables of this type.
If this error is not an instrument error, use MIDEDIT to inspect the driver.
Error in icdevice (line 376)
delete(obj);
Error in main3 (line 15)
ps3000aDeviceObj = icdevice('picotech_ps3000a_generic.mdd', ''); % Create PicoScope 3000a device object
I found an issue: When the code is encapsulated into a function using "function", the program will report an error, but when "function" is removed, the program runs successfully. However, I still can't solve this problem.
Any help would be appreciated,
Many thanks!
Zhu Yuhang
Answers (0)
See Also
Categories
Find more on Data Import and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!