I am doing a project in which i have to interface a device via USB using MATLAB. The API (dll files) of the device is written in the C++ so i used loadlibrary command in MATLAB to load it and done interfacing. It's working fine. The problem is that when i run the program from MATLAB it works fine but for running it again i need to plug out the device and then plug in to make it run successfully. But i wrote a C++ interface that is working fine. Can anyone tell me what should i do? The problem seems to be of getting the handle of the device but i am not getting the true point.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):