Results 1 to 4 of 4

Thread: Help me with the external trigger

  1. #1
    Join Date
    Jun 2011
    Location
    Lima, Peru
    Posts
    3

    Help me with the external trigger

    Hi, my name is Abel Dueñas
    I have a camera (DFK 31BF03.H.) and I'm using Matlab 2010 and TISimaq (camera adapter). I want to use the external trigger to then process the captured image. My problem is I can´t see the image before the trigger only after. What I seek is to see the image to decide if I should take the picture. Can you send a example of the code to make it?

    I am trying with this code, but I only can see the object that I want to shoot after push my external trigger. I wanna see the preview:

    clear all
    close all
    clc

    closepreview
    imaqreset %reset imaq
    imaqhwinfo %check available adapters
    vid = videoinput('tisimaq', 1); %set the first available camera to use tisimaq adapter
    src = getselectedsource(vid);
    set(src, 'Trigger', 'Enable') %directly manipulate src_obj to enable trigger
    set(src, 'TriggerPolarity', 'High') %Set polarity for the rising edge.
    src.Saturation=255;
    src.Hue=180;
    vid.ReturnedColorspace = 'rgb';

    preview(vid)


    Best Regard,
    Abel Dueñas


    PD: Sorry for my english, Mi natural language is spanish
    Attached Images Attached Images

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

    Re: Help me with the external trigger

    Hello Abel,

    it is obvious, that you can not see an image before you trigger the camera. The camera provides an image only on a trigger pulse.

    What you may want is the camera running free and snap am image from the live stream. Therefore, you may not need a trigger.
    Best regards
    Stefan
    IC Imaging Control Support

  3. #3
    Join Date
    Jun 2011
    Location
    Lima, Peru
    Posts
    3

    Re: Help me with the external trigger

    Hi Steffan
    Do you know how I can do this? Maybe with GPIO?. My camera is DFK 31BF03.H. Do you have any manual of TISIMAQ video adapter? I saw the video adapter and I noticed that has GPIOIN and GPIOOut

    Best Regards.
    Abel Dueñas

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

    Re: Help me with the external trigger

    Well, this is Matlab stuff to show the live video and snap a frame from it. The TIS IMAQ plugin is for the standard Matlab interface, which can be used by you. You may ask the Matlab support too, since I have no Matlab experiences.
    Best regards
    Stefan
    IC Imaging Control Support

Similar Threads

  1. Help me with the external trigger
    By Abel Dueñas in forum Hardware and Driver
    Replies: 1
    Last Post: June 27, 2011, 12:03:26
  2. External Trigger
    By drgolf in forum IC Imaging Control C++ Class Library
    Replies: 3
    Last Post: October 4, 2010, 09:31:44
  3. External trigger in DirectShow
    By samotholt in forum IC Imaging Control ActiveX
    Replies: 7
    Last Post: May 4, 2009, 14:18:27
  4. Max. FPS in external trigger mode
    By cagati in forum IC Imaging Control .NET
    Replies: 5
    Last Post: July 12, 2007, 09:45:48
  5. External Button Trigger
    By Unregistered in forum IC Imaging Control ActiveX
    Replies: 6
    Last Post: November 1, 2002, 17:54:58

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
  •