Skip to main content

How to use TIS Cameras in Matlab - Knowledgebase / FAQ - The Imaging Source Helpdesk

How to use TIS Cameras in Matlab

Authors list

In order to use our cameras with our IC Matlab Plugin, the Matlab IMAQ Toolbox must be installed.

The IC Matlab Plugin can be downloade dfrom https://www.theimagingsource.com/support/downloads-for-windows/extensions/icmatlabr2013b/

The Matlab IMAQ Toolbox must be purchased from Mathworks.


The IC Matlab DLLs must be registered by a small script:




fclose all;

close all;

clear all;

clc;




path = '';

filename = 'TISImaq_R2013_';

adapter = 'tisimaq_r2013_';


b =  strfind(mexext, '64')


if isempty(b)

    path = '{app}\win32\';

    filename = strcat(path,filename,'32.dll');

    adapter = strcat(adapter,'32');

else

    path = '{app}\x64\';

    filename = strcat(path,filename,'64.dll');

    adapter = strcat(adapter,'64');

end


filename = replace(filename,"\","\\") 


try

    objs = imaqhwinfo(adapter);                % get installed imaq hardware info


    fprintf('Unegister DLL file:\n');

    fprintf(filename);

    fprintf( '\n' );

    imaqregister(filename,'unregister');

catch exception

    fprintf('Register DLL file:\n');

    fprintf(filename);

    fprintf( '\n' );

    imaqregister(filename);

    fprintf( ['Installed Adaptor: ', adapter, '\n'] );

end


fprintf( 'done.\n' );


This script registers and unregisters the DLLs. 

The "{app}" has to be exchanged with "C:\Programm Files\

TIS IMAQ for MATLAB R2013b", depending on what " "C:\Programm Files\" is translated on your computer.


Helpful Unhelpful