OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C API referencev12.0

optris_sdk_pif_hardware_info

What the attached PIF can do, as data. Nothing above this branches on the PIF's model.

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_pif_hardware_info).

digital_input_count

uint8_t digital_input_count

Number of digital input channels. Zero is a real answer, not a missing one -- the Xi80 and Xi410 have none, which is why an analog input with a threshold is how those cameras take a signal in.

digital_output_count

uint8_t digital_output_count

Number of digital output channels.

analog_input_count

uint8_t analog_input_count

Number of analog input channels.

analog_output_count

uint8_t analog_output_count

Number of analog output channels.

stackable_device_count

uint8_t stackable_device_count

Physical devices the flat channel space spans.

sdk_calibrated

uint8_t sdk_calibrated

Non-zero when this kind of interface carries a per-channel calibration slope that the device applies, in converter-code space.

A property of the interface kind, not of the SDK. It does not mean the SDK is applying a calibration, and it says nothing about optris_sdk_pif_analog_calibration, which the controller does not apply at all. The slope it refers to is the interface's own factory trim, per channel, which optris_sdk_pif_get_channel_trim() reports.

has_fail_safe

uint8_t has_fail_safe

Non-zero when a fail-safe line exists at all.

maximum_stackable_device_count

uint8_t maximum_stackable_device_count

The largest optris_sdk_pif_set_identity() device_count this camera accepts.

stackable_device_count is what the flat channel space spans now, which is zero on a camera with nothing detected, so it cannot tell an application whether offering the user 2 or 3 stacked PIFs is sensible. This is the camera family's bound and does not move when a declaration does. One means "no stack": every kind other than ::OPTRIS_SDK_PIF_DEVICE_KIND_STACKABLE is exactly one device.

Took the byte that was reserved through version 11, so the struct did not grow and no offset moved. A caller compiled against an older header read a documented zero here, and zero is not a legal device count, so it cannot be mistaken for a real bound.

autonomy

optris_sdk_pif_autonomy autonomy

How much the camera firmware can drive unattended.

supported_analog_output_range_count

uint32_t supported_analog_output_range_count

How many analog output ranges this hardware supports. Read them with optris_sdk_pif_get_supported_analog_output_range().

reserved1

uint32_t reserved1

Reserved; always zero.

fail_safe_relay_hold_ms

uint32_t fail_safe_relay_hold_ms

How long this interface's fail-safe relay stays energised after it is retriggered, in milliseconds. Zero unless has_fail_safe.

The relay is a retriggerable monoflop and the line retriggers it once per cycle, so two edges have to fit inside this, not one. Measured on an industrial current PIF on a PI 400: about 1100 ms, with the interface reporting a fault at about 1500 ms. That is the only variant anybody has put on an oscilloscope; every interface reports the same number until a second one is measured.

Appended after version 10's layout: a caller compiled against an older header passes its own smaller struct_size and this field is not written.

fail_safe_max_period_ms

uint32_t fail_safe_max_period_ms

The longest optris_sdk_pif_fail_safe_config::period_ms this interface accepts, in milliseconds. Zero unless has_fail_safe.

Derived from fail_safe_relay_hold_ms, and deliberately well below the point at which the relay breaks: it is the largest period at which the SDK can miss an entire cycle -- a long shutter cycle, a stalled transfer, a host under load -- and the relay still holds. optris_sdk_pif_set_fail_safe() answers OPTRIS_SDK_ERROR_OUT_OF_RANGE above it.

Appended; see fail_safe_relay_hold_ms.