Interfacing device visa USB in MATLAB using C DLL files

北慕城南 提交于 2020-01-16 19:33:32

问题


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.

来源:https://stackoverflow.com/questions/18566995/interfacing-device-visa-usb-in-matlab-using-c-dll-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!