Results 1 to 4 of 4

Thread: Gige camera and matlab

  1. #1
    Join Date
    Nov 2016
    Posts
    2

    Gige camera and matlab

    Good morning,

    I am experiencing problems when trying to use Matlab to obtain images from three cameras installed in an industry. We have three gige cameras (two are DMK 33GX174 and one is DFK 33GX174) connected to a switch PoE and my computer also connected to the switch PoE.

    Also the switch is connected to a PLC because the whole system consists of a sequence in which each camera is introduced in the hot temperature environment, the image is acquired and then the camera is extracted from the harsh environment. So everything is syncronized.

    When I open IC Capture I can see the three cameras and visualize live video (not the three cameras simultaneously, but that is not a problem).

    However, since the acquisition step is integrated in a whole sequence, I want to obtain the images via Matlab. Thus, I have developed a very simple Matlab code that firstly creates the camera object, gets a frame and saves the frame, like this:

    camara=gigecam('serialnumber');
    pause(2)
    fotoAdq=snapshot(camara);
    pause(2)
    imwrite(fotoAdq,'FotoAdquirida.jpg');


    The problem is that randomly (it does not happen always!!), when i run the sequence, Matlab cannot acquire the image and the following error apears:

    'Time out occured while trying to get a frame from the camera. Modify the 'Timeout' property to change how many seconds 'snapshot' method waits to return image data.'

    I have checked the Matlab documentation and the Timeout property is set by default to 10 seconds.

    Can anybody help me to solve this problem?
    Since the acquisition sometimes work and sometimes doesn't work, I am afraid that the system is not robust enough to be installed in an industrial environment.

    Thanks in advance,
    Cristina

  2. #2
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,886

    Re: Gige camera and matlab

    Hello Cristina

    I am afraid, this is a support case for Matlab support stuff, because it seems, none of our software is in use.

    Only one short guess: Try lower frame rates in all cameras.
    Best regards
    Stefan
    IC Imaging Control Support

  3. #3
    Join Date
    Nov 2016
    Posts
    2

    Re: Gige camera and matlab

    Hello Stefan,
    Thank you very much for the suggestion.
    Is it posible to change the frame rate with IC capture and save the configuration for the camera so that anytime I open IC capture it 'remembers' the new frame rate?
    Thanks in advance,
    Cristina

  4. #4
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,886

    Re: Gige camera and matlab

    Hello Cristina

    yes, it is possible. In the "Device" toolbar, where you can select video formats is on the right side a box labeled with "fps". That is the frame rate.

    In the "File" menu, you can save and load a device configuration. It is saved with the extension "ICCF". If such a file is double clicked, IC Capture will be started with this configuration.
    Best regards
    Stefan
    IC Imaging Control Support

Similar Threads

  1. GigE Vision camera cannot be seen in Matlab
    By alfayadd in forum Hardware and Driver
    Replies: 4
    Last Post: May 20, 2014, 12:17:18
  2. DMK 23GP031 GigE Camera won't work with Matlab
    By jimmymc in forum Hardware and Driver
    Replies: 12
    Last Post: November 15, 2013, 09:15:03
  3. I need a camera library software for DFK 23GP031 GIGE camera in Ubuntu?
    By naveen in forum IC Imaging Control C++ Class Library
    Replies: 7
    Last Post: September 19, 2013, 12:42:01
  4. GigE support in Matlab and LabVIEW
    By uribepnr in forum Hardware and Driver
    Replies: 1
    Last Post: June 28, 2013, 08:57:57
  5. Problem using DMK 41BU02.H camera in MatLab
    By baptj in forum Hardware and Driver
    Replies: 3
    Last Post: April 19, 2012, 10:50:38

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •