Connecting an Instrument using icdevice
37 views (last 30 days)
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):
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,
Pico Technology on 8 Sep 2016
Please ensure that the win64 folder in the Instrument Driver root folder contains the following files:
If you have installed the Pico Technology SDK, then these files will be in the following location on your PC:
Hope this helps,
Raph on 18 Aug 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?
Pico Technology on 31 Aug 2017
Edited: Pico Technology on 31 Aug 2017
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.