OptrisOptrisDocumentation

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

optris::sdk::Telemetry

Per-frame telemetry snapshot embedded by the camera firmware. Updated every frame; all temperatures are in the SDK's temperature unit (Celsius unless SetTemperatureUnit() chose Fahrenheit). A probe that is not a reading (its *_known flag false) holds 0 in Celsius and NaN in Fahrenheit, where 0 would read as 32 F.

Public attributes

flag_temp_c

float flag_temp_c = 0.0f

Internal shutter (flag) temperature.

Only a reading when flag_temp_known is true.

box_temp_c

float box_temp_c = 0.0f

Camera housing temperature.

Only a reading when box_temp_known is true.

flag_temp_known

bool flag_temp_known = false

Whether flag_temp_c and box_temp_c are readings at all.

False on a camera whose telemetry row has never decoded -- a PI 160x120 @ 100 Hz, measured, which has too few metadata pixels to carry a row -- and false before the first frame of any camera, since these values come from a frame. See FrameMetadata::flag_temp_known, which is the same fact per frame and documents it at length.

box_temp_known

bool box_temp_known = false

See flag_temp_known.

chip_temp_c

float chip_temp_c = 0.0f

Detector ROIC temperature.

Only a reading when chip_temp_known is true. Otherwise it is 0.0f (NaN in Fahrenheit), which is not a detector at 0 C.

chip_temp_known

bool chip_temp_known = false

Whether chip_temp_c is a reading at all.

A chip at 0 C is a cold camera; a chip that did not decode is no camera reading at all, and these were the same number until this field existed. False on a camera whose detector count does not finish inside the band a detector can physically be at -- a PI 450 hw 410 and a PI 640i hw 602, measured -- and false before the first frame of any camera, since this value comes from a frame. See FrameMetadata::chip_temp_known, which is the same fact per frame and documents it at length.

It says nothing about the other probes beside it: one unreadable probe is a fact about that probe. Those probes have companions of their own now -- flag_temp_known and box_temp_known above -- so "the detector did not decode" and "nothing decoded" are separate answers rather than one field standing for both.

fpa_temp_c

float fpa_temp_c = 0.0f

Focal plane array temperature.

ambient_temp_c

float ambient_temp_c = 0.0f

Ambient temperature reported by the on-board sensor.

flag_open

bool flag_open = true

True when the internal shutter is open (detector exposed).

timestamp_us

uint64_t timestamp_us = 0

Microsecond timestamp from the camera clock.

frame_counter

uint32_t frame_counter = 0

The camera's own frame counter, as the last frame delivered carried it. It counts the frames the camera produced, so a jump of more than one between two frames is frames that did not arrive. It wraps at the camera's own width: 16 bits on the Xi 640 ETH over Ethernet. Zero before the first frame, and on a camera whose frames carry no counter.

sequence_number

uint32_t sequence_number = 0

Sequence number for detecting dropped frames.

integration_time_us

uint32_t integration_time_us = 0

Detector integration time in microseconds.

frame_period_us

uint32_t frame_period_us = 0

Frame period in microseconds (1/framerate).

focus_position

int32_t focus_position = 0

Current motorized focus position (raw motor steps).

focus_min

int32_t focus_min = 0

Minimum focus position (near limit).

focus_max

int32_t focus_max = 0

Maximum focus position (far limit).

focus_moving

bool focus_moving = false

True while the focus motor is in motion.

nuc_status

NucStatus nuc_status = NucStatus::kIdle

Where the shutter cycle is on this frame.

A live camera reports only NucStatus::kIdle and NucStatus::kInProgress: the engine answers "is a NUC running", so kCompleted, kFailed and kScheduled are in the enum but are never produced here. Treat anything other than kIdle as "the frame is mid-correction and its numbers are not to be trusted", and do not wait for kCompleted -- it will not come.

nuc_count

uint32_t nuc_count = 0

Total NUC cycles since power-on.

frames_since_nuc

uint32_t frames_since_nuc = 0

Frames elapsed since the last NUC completed.

bad_pixel_count

uint32_t bad_pixel_count = 0

Number of bad pixels detected on the sensor.

replaced_pixel_count

uint32_t replaced_pixel_count = 0

Number of bad pixels replaced by interpolation.

calibration_state

CalibrationState calibration_state = CalibrationState::kNotLoaded

What the device thinks of the calibration it has loaded.

Warning: Not populated. The current engine has no source for it, so this stays at CalibrationState::kNotLoaded on every frame from every camera, including cameras whose calibration is loaded and valid. It is left at its default rather than filled with a plausible-looking value, so do not gate anything on it. Whether calibration was acquired is reported instead by OpenPhase while the camera opens.

calibration_crc

uint32_t calibration_crc = 0

CRC32 of the currently loaded calibration data.

temp_range_min_c

int32_t temp_range_min_c = -20

Active temperature measurement range bounds, in whole degrees of the SDK's temperature unit.

temp_range_max_c

int32_t temp_range_max_c = 100

The upper bound of that pair, in whole degrees of the SDK's temperature unit.

Truncated from the active operation mode's own limit, not rounded, so a mode calibrated to 250.7 C reports 250 here while OperationMode::temp_max carries the exact float. In Fahrenheit that whole Celsius degree is converted and rounded to the nearest whole Fahrenheit degree (250 C reads 482). Falls back to this default, -20..100 C, when no mode is active.

temp_range_index

uint8_t temp_range_index = 0

Index into the device's supported range table.

ext_sync_active

bool ext_sync_active = false

True when external trigger sync is active.

ext_sync_count

uint32_t ext_sync_count = 0

Number of external sync pulses received.

pif_digital_in

uint16_t pif_digital_in = 0

PIF digital inputs, bit N set when input N reads high.

The same readings pif::PifController::ReadDigitalInput() gives, from Imager::GetPif(). A bitmask cannot say "no reading", so a clear bit is either low or not known yet (no process interface, or no frame since it was attached); ReadDigitalInput() tells the two apart. Zero from a Player or a StillSource, which keep no process interface readings.

pif_digital_out

uint16_t pif_digital_out = 0

PIF digital outputs, bit N set when the SDK last drove output N high.

What this SDK drove, not a reading of the pin: an output nothing has driven yet reads clear.

pif_analog_in_1

float pif_analog_in_1 = 0.0f

PIF analog input 1 (index 0), in volts on the pin.

The value pif::PifController::ReadRawAnalogInput(0) answers: the voltage the camera reported with its last frame, after the interface's own factory trim and before any channel's gain and offset. On a Stackable PIF this is the first input of the first device.

NaN when there is no reading, never 0, because 0 V is what an unwired input reads: no process interface attached or declared, an interface with no analog input, no frame since it was attached, a camera whose telemetry row has never decoded, and every Player and StillSource. Test with std::isnan(). A Telemetry you construct yourself still starts at 0.

pif_analog_in_2

float pif_analog_in_2 = 0.0f

PIF analog input 2 (index 1), in volts on the pin.

As pif_analog_in_1, for ReadRawAnalogInput(1): NaN as well on an interface with only one analog input.