Imaq functions dont work when compiled on 32bit system
1 view (last 30 days)
I made an application using imaq toolbox. Then I compiled it for 64bit and 32bit systems and tested it. The application worked good for the 64bit system. Whereas on the 32bit system I got an error saying and imaq function can not be found. Here's some code, where I try to find the right camera and open the camera:
deviceID = ;
info = imaqhwinfo('winvideo');
devnumb = numel(info.DeviceIDs); %get number of available devices
if ~isempty(strfind(info.DeviceInfo(i).DeviceName,'UI224xSE-M')) %%find my camera
deviceID = info.DeviceInfo(i).DeviceID;
vidH = videoinput('winvideo', deviceID, 'RGB32_1280x1024'); %create video object
.... %continue with initialization of video object
When I try to run the .exe file I get 'Undefined function or variable 'imaqreset'.'
I can also assure, that I have installed the imaq toolbox, because it works on 64bit but also by typing
MATLAB Version 8.3 (R2014a)
Image Acquisition Toolbox Version 4.7 (R2014a)
Image Processing Toolbox Version 9.0 (R2014a)
MATLAB Builder JA Version 2.3.1 (R2014a)
MATLAB Compiler Version 5.1 (R2014a)
Next I tried to comment out the line with imaqreset, because it is not really necessary but the i got the same error saying there is no defined function imaqhwinfo.
So why does my application work on 64bit systems but not on 32bit?