Connecting an Instrument using icdevice

조회 수: 48 (최근 30일)
Jasmine Shragai
Jasmine Shragai 2016년 8월 15일
편집: Pico Technology 2017년 8월 31일
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

답변 (3개)

Pico Technology
Pico Technology 2016년 9월 8일
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 2017년 8월 18일
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 2017년 8월 31일
편집: Pico Technology 2017년 8월 31일
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,

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by