Results 1 to 2 of 2

Thread: Using Software trigger in c# Camera DFK 72AUC02

  1. #1
    Join Date
    Apr 2017
    Posts
    1

    Using Software trigger in c# Camera DFK 72AUC02

    Hello

    I Have Camera DFK 72AUC02, but i want using software trigger in my source code.
    Please Solve this issue.

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

    Re: Using Software trigger in c# Camera DFK 72AUC02

    Hello Yuki

    You need two functions:
    Code:
    private void Set_Trigger_Enable_Switch(TIS.Imaging.ICImagingControl IC, bool OnOff )
    {
        if( IC.DeviceValid)
        {
            TIS.Imaging.VCDSwitchProperty SwitchItf;
            SwitchItf = (TIS.Imaging.VCDSwitchProperty)IC.VCDPropertyItems.FindInterface(TIS.Imaging.VCDIDs.VCDID_TriggerMode,
    
            TIS.Imaging.VCDIDs.VCDElement_Value,
            TIS.Imaging.VCDIDs.VCDInterface_Switch);
            if( SwitchItf != null )
            {
                SwitchItf.Switch = OnOff;
            }
        }
    }
    
    void PushTriggerSoftware_Trigger(TIS.Imaging.ICImagingControl ic)
    {
        if( ic.DeviceValid == true )
        {
            TIS.Imaging.VCDButtonProperty Property;
            Property = (TIS.Imaging.VCDButtonProperty)ic.VCDPropertyItems.FindInterface(TIS.Imaging.VCDIDs.VCDID_TriggerMode,
            TIS.Imaging.VCDIDs.VCDElement_SoftwareTrigger, TIS.Imaging.VCDIDs.VCDInterface_Button);
            if (Property != null)
            {
                Property.Push();
            }
        }
    }

    After you opened the camera, before you start the live video stream, you enable the trigger with

    Code:
    Set_Trigger_Enable_Switch(ICImagingControl1, true );
    Then you can continue. When an image is needed, you push the software trigger with:

    Code:
    PushTriggerSoftware_Trigger(ICImagingControl1);
    In order to handle the image, you need some preparations before starting the live video.

    Code:
    ICImagingControl1.LiveCaptureContinuous = true;
    This line advises IC Imaging Control to save each incoming image automatically in the internal ring
    buffer.
    Then you must implement the IC Imaging Control's ImageAvailable event. This is automatically called,
    when a new frame arrives and you can access the image buffer.

    I suggest you create a C# IC Imaging Control 3.4 Dialog Application with the IC wizard in Visual
    Studio (not 2017...) and enable automatic image processing. Then you add the code from above and
    play with it.
    Best regards
    Stefan
    IC Imaging Control Support

Similar Threads

  1. Software Trigger & FPS
    By upen24931251 in forum IC Imaging Control C++ Class Library
    Replies: 1
    Last Post: July 8, 2015, 08:18:23
  2. Software trigger with color camera DFK42BUC03
    By Filou in forum IC Imaging Control C++ Class Library
    Replies: 7
    Last Post: June 4, 2014, 09:02:01
  3. Software trigger with camera DFK 42BUC03
    By Filou in forum IC Imaging Control C++ Class Library
    Replies: 1
    Last Post: April 1, 2014, 09:37:20
  4. Software trigger?
    By florixyz in forum IC Imaging Control .NET
    Replies: 2
    Last Post: January 23, 2014, 15:37:58
  5. How fast is Software Trigger
    By nie3mals in forum Hardware and Driver
    Replies: 3
    Last Post: May 11, 2011, 12:04:35

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
  •