I use Matlab 2014b to capture some images with a PointGrey camera connected with USB3 port.

I initialize the camera in a function which basically execute these followed lines :

vid = videoinput('pointgrey', 1, 7); %7=mode of the camera src = getselectedsource(vid);

I wrote some functions to snap an image or to capture an image sequence by using :

vid.FramesPerTrigger = 1;%Number of frame start(vid);%Start the video while ~(get(vid,'FramesAvailable')>=vid.FramesPerTrigger)%Wait until there is at least the number of frame in the buffer end [alldata, time, metadata] = getdata(vid);%Then export it to get the data

Then, when I try to in another function I got this error :

Error using imaqdevice/start (line 95)

pointgrey: Failed to stop the camera acquisition.

Additional information from the driver Isoch has not been

started..

Error in FunctionWhichLaunchMeasurments (line 23)

start(vid);

After this error, I can't : use the camera anymore // Reinitialize it (with imaqreset) // Use FlyCap2 (USB not found) // Matlab crash if I try something related to the camera. Even by disconnecting et reconnecting the USB port, it still doesn't work, I have to restart the computer..

Sometime it appends with the stop(vid) command as well, the error specify the "driver Error" instead of the "driver Isoch" (which I don't know what it is).

So here are my questions : Why I got this error ? What can I do to avoid it ? And if it appends, what can I do to recover the connection with the camera ?

I asked these questions on MathWorks but no answer yet.

Thank you

More Thomas Perrault's questions See All
Similar questions and discussions