Connecting an Instrument using icdevice

36 vues (au cours des 30 derniers jours)
Jasmine Shragai
Jasmine Shragai le 15 Août 2016
Modifié(e) : Pico Technology le 31 Août 2017
Hi all,
I'm and trying to connect a working device PicoScope 4262 to Matlab R2015b on Windows 10.
I have succefully installed Win. SDK 7.1, and mex -setup does recognize it, and worked by this procedure to install all components (according to Answer 1):
https://www.mathworks.com/matlabcentral/answers/268391-how-can-i-set-up-my-picoscope-device-in-instrument-control-toolbox
But, when trying to run PS4000A_IC_Generic_Driver_Block.m script, which is an example script given by Pico, I get the following error messege:
Error using instrument/delete (line 82) Operation failed: An error occurred while executing the driver disconnect code. Unit not closed. If this error is not an instrument error, use MIDEDIT to inspect the driver.
Error in icdevice (line 308) delete(obj);
Error in PS4000A_IC_Generic_Driver_Block (line 44) ps4000aDeviceObj = icdevice('picotech_ps4000a_generic.mdd');
The line failing is:
ps4000aDeviceObj = icdevice('picotech_ps4000a_generic.mdd');
(The line before that loads the configuration file)
Any help would be appreciated,
Many thanks!
Jasmine

Réponses (3)

Pico Technology
Pico Technology le 8 Sep 2016
Hi Jasmine,
Please ensure that the win64 folder in the Instrument Driver root folder contains the following files:
  • ps4000MFile.m
  • ps4000_thunk_pcwin64.dll
  • ps4000WrapMFile.m
  • ps4000Wrap_thunk_pcwin64.dll
If you have installed the Pico Technology SDK, then these files will be in the following location on your PC:
C:\PicoSDK\MATLAB\ps4000\win64
Hope this helps,

Raph
Raph le 18 Août 2017
Same problem here. The device object was not deleted and its handle no longer accessible. Restarting Matlab or even the PC does not solve the problem.
Has anyone found a solution?
Thanks.

Pico Technology
Pico Technology le 31 Août 2017
Modifié(e) : Pico Technology le 31 Août 2017
Hi Raph,
Which PicoScope are you using?
If the connection to the device has not been closed correctly, the driver will still have a lock on it and you may need to close MATLAB via the Task Manager.
Please install the latest version of the files via the MATLAB Add-Ons Explorer (click on the Learn More button in the File Exchange entry to view information on installation and prerequisites).
If you are still encountering the same issue, please post back here or contact us directly.
Regards,

Community Treasure Hunt

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

Start Hunting!

Translated by