connect matlab and picoscope
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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.
0 Commenti
Risposte (1)
Jinal
il 3 Ott 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
Vedere anche
Categorie
Scopri di più su Instrument Control Toolbox Supported Hardware in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!