OptrisOptrisDocumentation

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

optris::sdk::pif::PifHardwareInfo

What the attached PIF can do, as data.

The eight device-variant classes of version 11 are these fields. Nothing above this struct branches on the PIF's model.

Public attributes

digital_input_count

uint8_t digital_input_count = 0

Number of digital input/output channels.

Zero is a real answer, not a missing one: the Xi80 and Xi410 have no digital inputs at all, and configuring one is refused rather than failing on the wire later.

digital_output_count

uint8_t digital_output_count = 0

analog_input_count

uint8_t analog_input_count = 0

Number of analog input/output channels.

analog_output_count

uint8_t analog_output_count = 0

stackable_device_count

uint8_t stackable_device_count = 1

Stacked PIFs present themselves as one flat channel space; this is how many physical devices that space spans.

maximum_stackable_device_count

uint8_t maximum_stackable_device_count = 1

The largest device_count SetIdentity() will accept here.

stackable_device_count is what the space spans now, which on a camera with nothing detected is zero -- 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 it does not move when a declaration does. Without it the only way to populate that choice is a hard-coded model table in the application.

One means "no stack": every kind other than kStackable is exactly one device.

sdk_calibrated

bool sdk_calibrated = false

The analog path carries an SDK calibration slope.

has_fail_safe

bool has_fail_safe = false

A fail-safe line exists at all.

autonomy

PifAutonomy autonomy = PifAutonomy::kNone

How much the camera firmware can drive unattended.

supported_analog_output_ranges

std::vector< AnalogRange > supported_analog_output_ranges

Which analog output ranges this hardware can be switched to.

analog_input_trims

std::vector< PifChannelTrim > analog_input_trims

Each analog input channel's trim, in input converter codes. One entry per analog_input_count, in the same flat channel order WriteAnalogOutput() and ReadAnalogInput() index.

analog_output_trims

std::vector< PifChannelTrim > analog_output_trims

Each analog output channel's trim, in output converter codes. One entry per analog_output_count.

fail_safe_relay_hold

std::chrono::milliseconds fail_safe_relay_hold = kFailSafeRelayHoldTypical

How long this interface's fail-safe relay holds after a retrigger. See kFailSafeRelayHoldTypical for where the number comes from and how far it has been measured.

Meaningless unless has_fail_safe.

fail_safe_max_period

std::chrono::milliseconds fail_safe_max_period = kFailSafePeriodMax

The longest PifFailSafeConfig::period this interface will accept, derived from fail_safe_relay_hold. SetFailSafe() refuses anything above it.

Reported as data rather than left as a constant inside the SDK because the bound is a property of the interface's relay, and an application cannot be expected to know it. Today every interface answers the same number, because only one has been measured.

Public functions

fail_safe_edge_budget

auto fail_safe_edge_budget() const -> std::chrono::milliseconds

The longest gap between edges that still holds the relay.

The relay is retriggered once per cycle, so two edges have to fit inside the hold, not one. This is what GetFailSafeHealth() judges the observed cadence against.