# Setting Up a Displacement Sensor

Cognex Designer supports including Cognex Displacement Sensors directly into a Task. This allows you to include the image acquisition step as part of the Task.

1. Connect the camera to the network and the power source.

   Note: See the DS1000 Quick Reference Guide for more information.

2. In Cognex Designer, in the Devices node of the Project Explorer, right-click Cameras and select Add > 'Camera' device.

   Note: If the camera is already listed, right-click on it and select Connect.

3. This launches the Parameter Configuration dialog, where you provide the name, the device and the video format for the camera.

   Note: For more information about the Parameter Configuration dialog, see the Camera Device topic.
4. Press the Accept button.
5. Go to Tasks > Task > Task.

6. In the Toolbox, your DS sensor will be in the Devices node, with the name you specified.

7. Drag and drop the desired Camera device onto the Task, where it becomes a Reference Block that can be linked to compatible Tool Blocks or Reference Blocks.

8. Double-click the camera's block to configure the DS sensor's Settings, DS1000 Series, Strobe & Trigger, Calibration, GigE and Custom Properties, as well as focus and acquire images with the DS Sensor.

   Related Topics For more information, see the Acquiring Images from a DS1000 Series Sensor topic in the VisionPro Online Documentation.

9. You can then link your camera's output image as an input to other blocks in the Task.

10. Press the Run button to acquire an image, and pass the image to the linked block.