connect matlab and picoscope
5 次查看(过去 30 天)
显示 更早的评论
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.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1499719/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1499719/image.png)
Then the following error is always showed.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1499724/image.png)
I connect the picoscope 3406D with my laptop, and it works when I check the generated signal in Picoscope7.
0 个评论
回答(1 个)
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
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!