connect matlab and picoscope

8 views (last 30 days)
Xiaotian Yu
Xiaotian Yu on 2 Oct 2023
Commented: Xiaotian Yu on 4 Oct 2023
I want to connect the Matlab with picoscope 3406D, the following prerequisites have been done. And I try to run the example from PicoScope 3000 Series A API MATLAB Generic Instrument Driver in Matlab.
Then the following error is always showed.
I connect the picoscope 3406D with my laptop, and it works when I check the generated signal in Picoscope7.

Answers (1)

Jinal
Jinal on 3 Oct 2023
Hello Xiaotian Yu,
I understand that you are facing an error while running the example from PicoScope 3000 Series A API MATLAB Generic Instrument Driver.
The "icdevice" error occurs when the mdd driver connect code fails. However, there seems to be a problem with the error reporting related to "icdevice". Instead of displaying the actual error message that describes the issue with the mdd driver connect code, an unexpected error is thrown from the driver disconnect code.
The actual error message describing the issue with the mdd driver connect code can be retrieved for troubleshooting further.
To see the actual error message, try the following workflow:
1) Open the file "icdevice.m" through the following and place a breakpoint at line 392 and 415 as in the attached screenshot:
edit([matlabroot '\toolbox\instrument\instrument\@icdevice\icdevice.m'])
2) Execute "icdevice" create and connect,
ps3000aDeviceObj = icdevice('picotech_ps3000a_generic.mdd', ''); % The mdd driver you are using
connect(ps3000aDeviceObj)
3) When MATLAB stops at a breakpoint in debug mode, display the exception in the command window
aException
Then, click Continue to exit debug mode.
Please note, the issue with the “icdevice” error reporting is a known issue in MATLAB R2023a that has been considered for addressing in future releases.
Best Regards,
Jinal Patel
  1 Comment
Xiaotian Yu
Xiaotian Yu on 4 Oct 2023
Hello Jinal Patel,
I tried what you said, and it's showed this error. The Chinese sentence means that "the specified block could not be found".
Best regards
Xiaotian Yu

Sign in to comment.

Categories

Find more on Instrument Control Toolbox Supported Hardware 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!