# Initialize Camera Features

Copy

    // Initialize a camera's features using the acq fifo's OwnedGigEAccess.
    // This function is provided as an example only.  Any features you set
    // need to be appropriate to the camera you are using.  Please consult
    // your camera's documentation to determine which settings will be
    // appropriate for you.
    void CSimpleAcquisitionDlg::InitializeGigEFeatures()
    {

        auto gigEAccess = m_acqFifo->FrameGrabber()->OwnedGigEAccess();

        if (gigEAccess != nullptr) {
        gigEAccess->SetFeature("TriggerSelector", "FrameStart");
        gigEAccess->SetFeature("TriggerSource", "Line1");

        gigEAccess->SetFeature("LineSelector", "Line1");
        gigEAccess->SetFeature("LineMode", "Input");
        }
        else
        {
        LogToTextbox("Acq Fifo OwnedGigEAccess is null");
        }
    }