If the constructor failed, we can get errors that look like this:
Error using indexing
VideoResolution width exceeded. The sum of the ROIPosition X offset and Width values is too large.
Error in zapit.hardware.camera/set.ROI (line 241)
obj.vid.ROIPosition = ROIpos;
Error in zapit.pointer (line 106)
obj.cam.ROI = round(obj.settings.cache.ROI);
Error in start_zapit (line 68)
hZP = zapit.pointer(ZPargs{:});
We see the following orphan devices exist:
Warning: Objects of 'videosource' class exist. Cannot clear this class or any of its superclasses.
Warning: Objects of 'zapit.pointer' class exist. Cannot clear this class or any of its superclasses.
Warning: The following classes still have existing instances that cannot be cleared:
imaqdevice (4 instances)
videoinput (4 instances)
We can find a device of class videoinput like this:
'videoinput'
So if we Tag this when we set up, we can search and delete during startup because this fixes it: delete(s).
If the constructor failed, we can get errors that look like this:
We see the following orphan devices exist:
We can find a device of class
videoinput
like this:So if we Tag this when we set up, we can search and delete during startup because this fixes it:
delete(s)
.