Navigate
The Imaging Source Helpdesk
  • Register

  • or
  • Login
    Need a password reminder?
  • English
or
Contact Us
  • Get in touch

    Send us an email

  • Submit Community Topics

    Community Topics and suggestions submitted by customers like you

  • Start a chat session

  • Knowledgebase Read help articles
  • Community Custom suggestions
  • Contact Us We are here to help
  • Portal
  • Knowledgebase
  • FAQ
  • How to use TIS Cameras in Matlab
Download PDF

How to use TIS Cameras in Matlab

S.Geißler
2019-03-13
in FAQ

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.


Rate the quality of this page

This page was helpful :) :( This page was not helpful

Quick Jump
  • The Imaging Source Helpdesk
  • Knowledgebase
  • Community
  • Contact Us
Top
Helpdesk software provided by Deskpro