Collapse
CollapsingX
  • - or -

Cameras and your runtime platform


To set up the hardware and software components of your runtime platform for use within your project, use the Platform Configuration dialog.

This dialog is accessible by clicking on the Project Configure platform menu item, or the Configure platform () toolbar button in the Platform toolbar at the top-right of the interface.

Note that, if you want to simultaneously run multiple projects on a runtime platform, and more than one of those projects grab from a camera, you must explicitly set, for each project, the camera allocation mode to a specific (and different) camera. For more information, see the Considerations when running multiple projects simultaneously section in Chapter 60: Running multiple projects on a runtime platform.

Allocating cameras on a PC runtime platform

New projects and nearly all existing projects have at least one Camera step. Each Camera step specifies a camera source, which is configured by selecting a camera component defined in the Platform Configuration dialog.

Each camera component maps to a physical camera and has its own unique configurable properties. The act of mapping a camera component in Matrox Design Assistant to a physical camera is called camera allocation.

By default, a new project set to run on a PC runtime platform will try to allocate a camera of the type specified when the project is created. If you have a single dedicated camera on your network, then no special action is required for allocation. When there are multiple physical cameras on your network, but only a single camera component in your project, you must select which physical camera to allocate to your camera component. For more information, see the Identifying cameras and changing the default allocation mode subsection of this section.

If you want to use multiple cameras in your project or you want to add a third-party sensor, you can add these components using the Platform Configuration dialog. To add a camera component, click on the Add button in the Cameras page of the Platform Configuration dialog, and then select the supported camera or third-party sensor from the presented dialog. Click Add & Configure to specify configuration settings. Any previously added cameras will remain available.

It is recommended to test a new GigE/USB3 Vision camera using Matrox Capture Assistant, discussed below, before connecting to Matrox Design Assistant. In Matrox Capture Assistant, you can more easily diagnose and troubleshoot grabbing or connectivity issues.

Matrox Capture Assistant

Matrox Capture Assistant is a utility, installed along with Matrox Design Assistant, that provides all essential tools for configuring your GigE/USB3 Vision system. You can use Matrox Capture Assistant to find GigE/USB3 Vision cameras on a network, configure many of a camera's feature values, and allocate the camera.

To launch Matrox Capture Assistant from the PhysicalCameraN page of the Platform Configuration dialog, click the Open Capture Assistant button.

Using the existing Matrox Design Assistant templates and example projects

When you create a project, you specify your own camera and system (typically, the system is added automatically). However, templates and example projects in Matrox Design Assistant are set to run using default settings. For example, the default camera type is GigE Vision. When you try to run a template or example project that grabs images, you might receive an error because the project attempts to access the default settings. To fix the problem, use the Cameras page of the Platform Configuration dialog to remove the listed camera component and add the camera that you are using.

Using external defaults in your project

On the PhysicalCameraN page of the Platform Configuration dialog, little square markers indicate values that are stored in the runtime platform's registry. These are default values established outside of Matrox Design Assistant using the MILConfig utility.

It is strongly recommended to choose settings not marked with the little square. When you choose an unmarked option, your choice is saved in the Matrox Design Assistant project file. This keeps important settings tied to the project itself, rather than to external defaults. For example, the camera Allocation Mode is best set to the unmarked Camera Name, IP Address, or Device Number option.

Similarly, some camera settings are stored on the physical camera itself. A small black dot beside a setting on the PhysicalCameraN page indicates that the project will use the value stored on the camera. Again, it is recommended to set values without the dot. This ensures predictable project performance, even if you swap out a camera. For example, if you want to disable triggering for the camera, and ensure the setting is saved with your project, set the Trigger input to instead of .

For more information on configuring a GigE/USB3 Vision camera (which can, for example, have additional features not listed in the Platform Configuration dialog), see the Platform settings for your camera section in Chapter 28: Acquisition.

Identifying cameras and changing the default allocation mode

To identify the camera to use, you can specify its rank among the available cameras on the network (device number), its IP address, or its camera name (note that you cannot specify such settings in emulation mode). On the PhysicalCameraN page of the Platform Configuration dialog, set the Allocation Mode to the mode you will use to identify the camera. Device Number is the initial setting and has the advantage of simplicity; you specify the camera by specifying its device number, which is the order in which it is detected. For example, by default, Matrox Design Assistant will connect to the first available camera that it discovers (device number 0). If you have a single camera plugged into your PC runtime platform, it will be found automatically. However, if multiple users share cameras on the network, there is no guarantee which camera (if any) will be the first unused one.

Depending on the default device number (device 0), using the initial setting (Device Number) might not be a good idea. To avoid the problem of always connecting to a different camera on the network, change the allocation mode to Camera Name or IP Address. This will uniquely identify a specific camera so the default allocation will always select the correct camera, as long as it is currently available.

You can only set the allocation mode to Camera Name if your GigE/USB3 Vision camera supports a persistent user-defined name. If it does, you can use Matrox Capture Assistant to give the camera a meaningful name. In Matrox Capture Assistant, choose a camera from the list of unallocated GigE/USB3 Vision cameras on the network, specify a meaningful camera name from the Device Information tab, and click on the Apply button. Then, on the PhysicalCameraN page of the Platform Configuration dialog, change the allocation mode to Camera Name and specify the camera's name. A GigE/USB3 Vision camera must be available (not allocated) to change any of its feature values, including its camera name; if another project has it allocated, you will not be able to access it from your current project.

There can only be one default camera. If your project uses more than one camera, the mapping from camera component to a physical camera must be explicitly specified in the project.

For more information about allocating non-default or multiple cameras, or configuring the runtime platform for high volume image data, see Chapter 28: Acquisition.