Image acquisition device gets locked by faulty code

12 ビュー (過去 30 日間)
Chris
Chris 2013 年 2 月 22 日
I'm using the Image Acquisition Toolbox. Whenever my code fails and I have to debug and try again I get the following error:
Error using imaqdevice/start (line 89)
Multiple image acquisition objects cannot access the same device simultaneously.
Error in camera (line 6)
start(vid)
It looks like some image object is left on from the previous run, preventing me from creating a new image object, but I've tried deleting all variables from workspace, close all, clear all... the only thing that works is to re-start Matlab.
This is getting really annoying. Please help! /Chris

採用された回答

Shankar Subramanian
Shankar Subramanian 2013 年 2 月 25 日
It seems like you have an active connection to the image acquisition device. Instead of closing MATLAB and re-opening - you can do either of the following: 1. delete(imaqfind) or 2. imaqreset
The above commands stops and deletes any active connection to the device from within MATLAB.
HTH,
Shankar
  1 件のコメント
Chris
Chris 2013 年 2 月 25 日
delete(imaqfind) did it :) thanks

サインインしてコメントする。

その他の回答 (1 件)

Image Analyst
Image Analyst 2013 年 2 月 22 日
Did you try stop()?
  1 件のコメント
Chris
Chris 2013 年 2 月 25 日
yes

サインインしてコメントする。

カテゴリ

Find more on Image Acquisition in Simulink in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by