# Cognex.Designer.ExampleCamera

The ExampleCamera sample plugin provides a template for creating a custom adapter Cognex Designer uses to integrate with custom camera devices.

Once your project implements the camera device plugin, Cognex Designer will be able to connect and interact with the custom camera. It should appear in Project Explorer → Devices → Cameras.

The sample plugin also includes a set of custom configuration editing elements to interact with the camera properties:

- WPF UserControl: Provides a common UI interface for editing camera properties

  CameraEditor.xaml

- Designer IDE Property Editor: Provides the ability to double-click the camera to edit camera properties

  SampleCameraDocumentProvider.cs

  SampleCameraEditor.xaml

- Designer Element: Provides a control to use on HMI page at run-time to edit camera properties.

  SampleCameraControl.xaml

Perform the following steps to use the sample plugin:

1. Copy the Cognex.Designer.ExampleCamera folder into a directory storing your project.

2. Open the Cognex.Designer.ExampleCamera solution in Visual Studio.

3. Develop and build your plugin.

Tip: SampleCamera.cs manages connection and interaction. Use SampleCameraScanner.cs to scan for devices to appear in the Devices list.

Cognex Designer makes the built plugin available at the following location:

%ProgramData%\Cognex\Designer\Plugins\Samples\Cognex.Designer.ExampleCamera

Verify the plugin consists of the following files:

- Cognex.Designer.ExampleCamera.Controls.dll

- Cognex.Designer.ExampleCamera.dll

- Cognex.Designer.ExampleCamera.IDE.dll

- plugin.config