connect matlab and picoscope

8 次查看(过去 30 天)
Xiaotian Yu
Xiaotian Yu 2023-10-2
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.

回答(1 个)

Jinal
Jinal 2023-10-3
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 个评论
Xiaotian Yu
Xiaotian Yu 2023-10-4
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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Instrument Control Toolbox Supported Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by