---
title: "Custom GenICam Feature Names"
description: "Feature mappings in LumiScan Cam Driver for cameras whose GenICam feature or trigger value names differ from the SFNC standard, e.g. a custom trigger."
product: "LumiScan Cam Driver"
component: "lumiscan-cam-driver"
version: "2.3.0"
display_version: "2.3.0.4"
latest_version: true
language: "en"
url: "https://docs.hdvisionsystems.com/en/lumiscan-cam-driver/lumiscan-camdriver/genicam-feature-names.html"
---

# Custom GenICam Feature Names – LumiScan Cam Driver

To set up and drive a camera, the Cam Driver uses a few common GenICam features: the exposure time, the pixel format, the trigger mode and source, the software trigger command and some others. It looks for each under the names of the GenICam standard (SFNC), and under the other spellings that cameras commonly use. A camera that uses a name of its own for one of them - for example a software trigger command called `FireTrigger` - gets its own names in the application settings file, `lumiscan-cam-driver.json`: a **feature mapping**.

## Configuring a Feature Mapping {#configuring-a-feature-mapping}

Add an entry under `featureMappings`, and name it by the camera’s `featureMappingId` in `cameras`:

```json
"cameras": [
    { "cameraId": "camera1", "serial": "200900623", "driverId": "default", "featureMappingId": "acme" }
],
"featureMappings": [
    {
        "id": "acme",
        "features": { "TriggerSoftware": "FireTrigger" },
        "values": { "TriggerSource_Software": "SW", "TriggerMode_On": "Enabled" }
    }
]
```

- `id`: the name the cameras use in `featureMappingId`. Several cameras of the same model can share one mapping.
- `features`: the common feature as the key, the camera’s own feature name as the value. Only the features that differ need an entry.
- `values`: for the trigger enumerations, the common value as the key, the camera’s own entry as the value.

A camera without `featureMappingId` uses the built-in names alone. To find the names a camera uses, browse its features under `hdvisionsystems/lumiscan-cam-driver/<camera name>/features` while it is connected, or look them up in the manufacturer’s software or documentation.

Restart the application after changing the mapping: it is applied when the camera connects.

## Common Features and Their Built-In Names {#common-features}

The Cam Driver tries the names in this order and takes the first one the camera has.

| Key under `features` | Built-in names | Meaning |
| --- | --- | --- |
| `TriggerSoftware` | `TriggerSoftware`, `SoftwareTrigger` | The command that fires a software trigger, for capture and `control/trigger/execute` |
| `TriggerMode` | `TriggerMode` | Whether the camera waits for a trigger |
| `TriggerSource` | `TriggerSource` | Which trigger the camera waits for: software, or a line |
| `TriggerSelector` | `TriggerSelector` | Which trigger is configured |
| `ExposureTime` | `ExposureTime`, `ExposureTimeAbs`, `ExposureTimeRaw` | The exposure time, set from `input/exposure-time` |
| `FrameRate` | `AcquisitionFrameRate`, `AcquisitionFrameRateAbs` | The acquisition frame rate |
| `PixelFormat` | `PixelFormat` | The pixel format set at connect |
| `Width`, `Height` | `Width`, `Height` | The image size |
| `Serial` | `DeviceSerialNumber`, `DeviceID` | The camera’s serial number |
| `VendorName` | `DeviceVendorName` | The vendor |
| `ModelName` | `DeviceModelName` | The model |
| `FirmwareVersion` | `DeviceFirmwareVersion`, `DeviceVersion` | The firmware version |

| Key under `values` | Built-in entries |
| --- | --- |
| `TriggerMode_On` | `On`, `Triggered`, `ON`, `on`, `1` |
| `TriggerMode_Off` | `Off`, `FreeRunning`, `OFF`, `off`, `0` |
| `TriggerSource_Software` | `SoftwareTrigger`, `Software`, `1` |
| `TriggerSource_Hardware` | `Line0`, `Line1`, `2` |
| `TriggerSelector_FrameStart` | `FrameStart` |
| `TriggerSelector_FrameBurstStart` | `FrameBurstStart` |

The JSON schema of the settings file lists the same keys.

## How a Mapping Is Applied {#how-a-mapping-is-applied}

- A mapped name is tried first. When the camera does not have it, the Cam Driver logs a warning that names the mapping and the feature, and tries its built-in names.
- A mapped entry under `values` is taken as it is when the camera cannot list its entries; otherwise it must be one of them, or the warning follows and the built-in entries are tried.
- A `featureMappingId` that names no mapping stops the Cam Driver at start, with an error that names it.
- An unknown key under `features` or `values` makes the settings file unreadable: the Cam Driver logs an error that names the key and the valid ones, and runs without cameras.

## Cameras Without a Software Trigger Command {#cameras-without-a-software-trigger}

When a camera has none of the software trigger commands - neither a built-in name nor a mapped one - the Cam Driver logs a warning when the camera connects. The camera still works on a hardware trigger or free running. In software trigger mode it cannot be fired:

- If the camera is in software trigger mode when it connects, `connect-camera` fails and the camera stays disconnected. The error, which says to map the command under `featureMappings`, is in the log and in `hdvisionsystems/lumiscan-cam-driver/system/status-text`.
- If the camera is switched to software trigger mode later, `control/trigger/execute` answers with status `-10012` (`softwareTriggerFailed`).

The nodes `control/trigger/execute` and `input/trigger-before-acquire` exist for every camera, so a program can use the same addresses for all of them.
