Camera Transforms for MxVision

NI-CameraTransforms

The Camera Transforms control the acquisition of images using a camera attached to the PC. Currently MxVision supports GigE Vision cameras or USB Web Cam style cameras (compatible with DirectShow). Follow installation steps to ensure drivers and software are installed. Make sure the camera is not in use by other programs or utilities before using the camera with MxVision.

Configure Camera Properties

1.Power On the camera. For a GigE Vision camera, wait for the camera to acquire network address.

2.Start NI Measurement & Automation Explorer (MAX): The installed camera should show up under "IMAQdx Devices" in the Configuration tree if installation was successful.

3.Rename the camera if needed: If using more than one camera or if more than one camera is attached to the PC, a descriptive or unique name could be beneficial when setting up the Camera Transform.

4.Change Camera and Acquisition Parameters if needed. Note: Webcam Exposure control should be set to manual and the value for exposure should be configured in the Camera Transform.

5.Press the Grab button to continuously acquire images. Verify that the image looks as desired and all information needed for testing is visible.

6.Close NI MAX when done.

Configure the Camera Transform

1.In the MxTransIt Toolbox panel, click on either "USB Webcam (NI)" or "GigE Camera (NI)" based on your camera type.

2.Click on the Camera transform to display its properties in the Properties box on the right.

3.In the Selected Camera property, select the desired device from the drop down menu. Wait for the list to populate if the device does not show up immediately.

4.If using Webcam, set the Exposure. Check the camera documentation for allowed ranges. Exposure is usually set in base 2 increments, for example: use 0.125 sec (1/8 sec), 0.015625 sec (1/64 sec), etc. Use the same value as in step 4 above.

5.In the Transform Tick Period property, input the value for how often you want to acquire and process images. Ideally it should not exceed the frame rate that is set by the camera properties, otherwise the latest acquired image is used.

6.If Image Registration is required, see Image Registration to configure.

7.Use these two ports on the Camera Transform:

Export the SaveImage input port by selecting Transform‑>Export Ports from the menu bar. This makes the port visible to MxVDev, and is used whenever a current image needs to be stored as a file to the hard drive.

The output port SourceImage should be connected to SourceImage input ports on Image Recognition Transforms. It cannot be imported into MxVDev or connected to other types of ports.

8.Select File->Save from the MxTransIt main menu to save your Harness.

Related Topics:

Image Recognition Overview

Image Registration

Camera Simulation Transforms

Camera Transforms