![]() |
Sensor API v2.5.0
|
Macros | |
| #define | PARAM_LOAD_RECIPE "load_recipe" |
| #define | PARAM_SAVE_RECIPE "save_recipe" |
| #define | PARAM_PEAK_ENABLE "peak_enable" |
| #define | PARAM_PEAK_THRESHOLD "peak_treshold" |
| #define | PARAM_PEAK_FIR_LENGTH "peak_fir_length" |
| #define | PARAM_SENSOR_DATA_IN_FLASH "sensor_data_in_flash" |
| #define | PARAM_SENSOR_CALIBRATION_FILE "sensor_calibration_file" |
| #define | PARAM_SENSOR_X_CALIBRATION_FILE "sensor_x_calibration_file" |
| #define | PARAM_SENSOR_INTENSITY_CALIBRATION_FILE "sensor_intensity_calibration_file" |
| #define | PARAM_SENSOR_Z_COMPENSATION_FILE "sensor_z_compensation_file" |
| #define | PARAM_PEAK_Y_UNIT "peak_y_unit" |
| #define | PARAM_PEAK_X_UNIT "peak_x_unit" |
| #define | PARAM_INTENSITY_CORRECTION_ENABLE "intensity_correction_enable" |
| #define | PARAM_SENSOR_TYPE "sensor_type" |
| #define | PARAM_GAIN "gain" |
| #define | PARAM_IMAGE_HEIGHT "image_height" |
| #define | PARAM_IMAGE_OFFSETY "image_offsety" |
| #define | PARAM_SURFACE_MODE "surface_mode" |
| #define | PARAM_HDR_ENABLED "hdr_enable" |
| #define | PARAM_HDR_KP1_POS "hdr_kp1_pos" |
| #define | PARAM_HDR_KP2_POS "hdr_kp2_pos" |
| #define | PARAM_HDR_VLOW2 "hdr_vlow2" |
| #define | PARAM_HDR_VLOW3 "hdr_vlow3" |
| #define | PARAM_HDR_KP1_POS_FLOAT "hdr_kp1_pos_float" |
| #define | PARAM_HDR_KP2_POS_FLOAT "hdr_kp2_pos_float" |
| #define | PARAM_HDR_VLOW2_FLOAT "hdr_vlow2_float" |
| #define | PARAM_HDR_VLOW3_FLOAT "hdr_vlow3_float" |
| #define | PARAM_X_LIMIT_MIN "x_limit_min" |
| #define | PARAM_X_LIMIT_MAX "x_limit_max" |
| #define | PARAM_SATURATION_COUNT "saturation_count" |
| #define | PARAM_AVERAGE_FRAME_INTENSITY "average_frame_intensity" |
| #define | PARAM_DYN_SENSOR_CTRL_ENABLE "dyn_sensor_control_enable" |
| #define | PARAM_MAX_POINT_COUNT "max_point_count" |
| #define | PARAM_MTU "mtu" |
| #define | PARAM_IFG "ifg" |
| #define | PARAM_HEARTBEAT "heartbeat" |
| #define | PARAM_IMAGE_HEIGHT_ZERO_POSITION "image_height_zero_position" |
| #define | PARAM_DEVICE_SERIAL_NUMBER "device_serial_number" |
| #define | PARAM_USER_FLASH_WRITE_TIME "user_flash_write_time" |
| #define | PARAM_SIGNAL_DETECTION_FILTER_LENGTH "signal_detection_filter_length" |
| #define | PARAM_PEAK_AVERAGE_INTENSITY_FILTER_LENGTH "peak_average_intensity_filter_length" |
| #define | PARAM_LAYER_INTENSITY_TYPE "layer_intensity_type" |
| #define | PARAM_LAYER_MAX_THICKNESS "layer_max_thickness" |
| #define | PARAM_LAYER_MIN_THICKNESS "layer_min_thickness" |
| #define | PARAM_LAYER_EFFECTIVE_REFRACTIVE_INDEX "layer_refractive_index" |
| #define | PARAM_THICKNESS_MODE "thickness_mode" |
| #define | PARAM_AVERAGE_X_PIXEL_SIZE "average_x_pixel_size" |
| #define | PARAM_AVERAGE_Z_PIXEL_SIZE "average_z_pixel_size" |
| #define PARAM_AVERAGE_FRAME_INTENSITY "average_frame_intensity" |
C# name: SensorParameter.AvgFrameIntensity
Average intensity level of a frame.
| #define PARAM_AVERAGE_X_PIXEL_SIZE "average_x_pixel_size" |
C# name: SensorParameter.AverageXPixelSize
Reads average x-pixel size in micrometers from the selected image ROI. Parameter is read only.
| #define PARAM_AVERAGE_Z_PIXEL_SIZE "average_z_pixel_size" |
C# name: SensorParameter.AverageZPixelSize
Reads average z-pixel size in micrometers from the selected image ROI. Parameter is read only.
| #define PARAM_DEVICE_SERIAL_NUMBER "device_serial_number" |
C# name: SensorParameter.DeviceSerialNumber
Device Serial Number, defined by production.
| #define PARAM_DYN_SENSOR_CTRL_ENABLE "dyn_sensor_control_enable" |
C# name: SensorParameter.DynSensorCtrlEnable
Determines if dynamic sensor control is enabled or not. Dynamic control parameters given by interface function xxx to set register parameters REG_DYN_SENSOR_CTRL_N_LOCATION, REG_DYN_SENSOR_CTRL_N_HEIGHT, REG_DYN_SENSOR_CTRL_N_HEIGHT_OFFSET, REG_DYN_SENSOR_CTRL_N_PULSE_WIDTH N = 1, 2, ..., 10.
| #define PARAM_GAIN "gain" |
C# name: SensorParameter.Gain
Gain sets the sensitivity of the sensor. The higher the gain, the more sensitive the sensor. Image grabbing must be stopped before setting the gain in LCI1220 and LCI1620 sensors. The default setting is suitable for the most of the applications. Use higher Gain setting only when the signal is very weak or short LED Pulse Width is required due to high measurement frequency. Increasing Gain increases also noise and background signal level, therefore Gain increase might also require increasing the Threshold. Optimal Gain value for specific measurement must be found experimentally.
| #define PARAM_HDR_ENABLED "hdr_enable" |
C# name: SensorParameter.HdrEnabled
Enables or disables the HDR mode, where the dynamic range of luminosity is greater than normally.
| #define PARAM_HDR_KP1_POS "hdr_kp1_pos" |
C# name: SensorParameter.Kp1Pos
The knee point 1 position for the HDR. This parameter is used only when the HDR is enabled.
| #define PARAM_HDR_KP1_POS_FLOAT "hdr_kp1_pos_float" |
C# name: SensorParameter.Kp1PosFloat
The knee point 1 position in % for the HDR. This parameter is used only when the HDR is enabled.
| #define PARAM_HDR_KP2_POS "hdr_kp2_pos" |
C# name: SensorParameter.Kp2Pos
The knee point 2 position for the HDR. This parameter is used only when the HDR is enabled.
| #define PARAM_HDR_KP2_POS_FLOAT "hdr_kp2_pos_float" |
C# name: SensorParameter.Kp2PosFloat
The knee point 2 position in % for the HDR. This parameter is used only when the HDR is enabled.
| #define PARAM_HDR_VLOW2 "hdr_vlow2" |
C# name: SensorParameter.VLow2
The VLow2 (sensitivity, reference voltage) value for the HDR. This parameter is used only when the HDR is enabled.
| #define PARAM_HDR_VLOW2_FLOAT "hdr_vlow2_float" |
C# name: SensorParameter.VLow2Float
The VLow2 (sensitivity, reference voltage) value for the HDR. This parameter is used only when the HDR is enabled.
| #define PARAM_HDR_VLOW3 "hdr_vlow3" |
C# name: SensorParameter.VLow3
The VLow3 (sensitivity, reference voltage) value for the HDR. This parameter is used only when the HDR is enabled.
| #define PARAM_HDR_VLOW3_FLOAT "hdr_vlow3_float" |
C# name: SensorParameter.VLow3Float
The VLow3 (sensitivity, reference voltage) value for the HDR. This parameter is used only when the HDR is enabled.
| #define PARAM_HEARTBEAT "heartbeat" |
C# name: SensorParameter.Heartbeat
Communication heartbeat value. Heartbeat is the interval in milliseconds to check if the connection is alive.
| #define PARAM_IFG "ifg" |
C# name: SensorParameter.Ifg
Sets Interpacket Delay. Min. value is 20. Available only with LCI401, LCI1200, LCI1201 and LCI1600 sensors.
| #define PARAM_IMAGE_HEIGHT "image_height" |
C# name: SensorParameter.Height
Height of the sensor image in pixel unit. Small values can be used to achieve higher frequency. Used in conjunction with PARAM_IMAGE_OFFSETY. Sum of image height and image offset y shall not exceed the maximum sensor height.
| #define PARAM_IMAGE_HEIGHT_ZERO_POSITION "image_height_zero_position" |
C# name: SensorParameter.ImageHeightZeroPosition
Returns image row z coordinate where height has been tuned nearest to '0' by calibration file on use.
| #define PARAM_IMAGE_OFFSETY "image_offsety" |
C# name: SensorParameter.OffsetY
Set the Y offset for the sensor. Used in conjunction with PARAM_IMAGE_HEIGHT.
| #define PARAM_INTENSITY_CORRECTION_ENABLE "intensity_correction_enable" |
C# name: SensorParameter.IntensityCorrectionEnable
Enables or disables the intensity correction for the peak data.
| #define PARAM_LAYER_EFFECTIVE_REFRACTIVE_INDEX "layer_refractive_index" |
C# name: SensorParameter.LayerRefractiveIndex
Specifies the effective refractive index of a material. _SetLayerFloatParameter function shall be used for this parameter.
| #define PARAM_LAYER_INTENSITY_TYPE "layer_intensity_type" |
C# name: SensorParameter.LayerIntensityType
Specifies which filter is used for intensity values in linecallback and batchcallback functions. _SetLayerIntParameter function shall be used for this parameter.
| #define PARAM_LAYER_MAX_THICKNESS "layer_max_thickness" |
C# name: SensorParameter.LayerMaxThickness
Specifies maximum thickness for the layer. Used for missing surface detection. _SetLayerFloatParameter function shall be used for this parameter.
| #define PARAM_LAYER_MIN_THICKNESS "layer_min_thickness" |
C# name: SensorParameter.LayerMinThickness
Specifies minimum thickness for the layer. _SetFloatParameter function sets same value for all layers. _SetLayerFloatParameter function shall be used if layer specific value is needed.
| #define PARAM_LOAD_RECIPE "load_recipe" |
C# name: SensorParameter.LoadRecipe
Loads a sensor configuration from the specified recipe.
| #define PARAM_MAX_POINT_COUNT "max_point_count" |
C# name: SensorParameter.MaxPointCount
Maximum point count per profile. Change this before calling _StartGrabbing(). Default value is fine if number of surfaces is less than 5.
| #define PARAM_MTU "mtu" |
C# name: SensorParameter.Mtu
Sets Maximum Transmission Unit (MTU). Available only with LCI401, LCI1200, LCI1201 and LCI1600 sensors.
| #define PARAM_PEAK_AVERAGE_INTENSITY_FILTER_LENGTH "peak_average_intensity_filter_length" |
C# name: SensorParameter.PeakAverageIntensityFilterLength
The filter is used for averaging intensity values of the detected peaks. With high average intensity filter length, the best possible intensity image is produced.
| #define PARAM_PEAK_ENABLE "peak_enable" |
C# name: SensorParameter.PeakEnabled
Controls the output mode of the camera. If enabled, peaks are output to ProfileCallback, LineCallback and BatchCallback functions. If disabled, raw images are output to RawImageCallback.
| #define PARAM_PEAK_FIR_LENGTH "peak_fir_length" |
C# name: SensorParameter.FirLength
FIR parameter is used to find the detected peak position in the z-direction. Higher the FIR, more accurate the peak position is. With lower FIR, you can detect thinner layers in transparent layered material.
| #define PARAM_PEAK_THRESHOLD "peak_treshold" |
C# name: SensorParameter.PeakThreshold
The intensity threshold value used in peak detection. If the peak intensity is below this limit, the peak gets discarded
| #define PARAM_PEAK_X_UNIT "peak_x_unit" |
C# name: SensorParameter.PeakXUnit
Controls the unit of measure of X of the peaks. Note that this parameter has effect only if peak cloud output is active (PARAM_PEAK_ENABLE is set to 1).
| #define PARAM_PEAK_Y_UNIT "peak_y_unit" |
C# name: SensorParameter.PeakYUnit
Controls the unit of measure of Y of the peaks. Note that this parameter has effect only if peak cloud output is active (PARAM_PEAK_ENABLE is set to 1).
| #define PARAM_SATURATION_COUNT "saturation_count" |
C# name: SensorParameter.SaturationCount
The number of sensor pixels in saturation state.
| #define PARAM_SAVE_RECIPE "save_recipe" |
C# name: SensorParameter.SaveRecipe
Saves the current sensor configuration to the specified recipe.
| #define PARAM_SENSOR_CALIBRATION_FILE "sensor_calibration_file" |
C# name: SensorParameter.ZCalibrationFile
Path of the sensor Z calibration file. No need to set if calibration files are in the sensor.
| #define PARAM_SENSOR_DATA_IN_FLASH "sensor_data_in_flash" |
C# name: SensorParameter.SensorDataInFlash
Read flag if e.g. Sensor type and calibration data is written to sensor flash memory.
| #define PARAM_SENSOR_INTENSITY_CALIBRATION_FILE "sensor_intensity_calibration_file" |
C# name: SensorParameter.IntensityCalibrationFile
Path of the sensor intensity calibration file.
| #define PARAM_SENSOR_TYPE "sensor_type" |
C# name: SensorParameter.SensorType
Returns sensor type identifier without LCI prefix.
400 = LCI400
1200 = LCI1200
1600 = LCI1600
401 = LCI401
1201 = LCI1201
1220 = LCI1220
1620 = LCI1620
-1 if not set
| #define PARAM_SENSOR_X_CALIBRATION_FILE "sensor_x_calibration_file" |
C# name: SensorParameter.XCalibrationFile
Path of the sensor X calibration file. No need to set if calibration files are in the sensor.
| #define PARAM_SENSOR_Z_COMPENSATION_FILE "sensor_z_compensation_file" |
C# name: SensorParameter.SensorZCompensationFile
Path of the sensor Z-Compensation calibration file.
| #define PARAM_SIGNAL_DETECTION_FILTER_LENGTH "signal_detection_filter_length" |
C# name: SensorParameter.SignalDetectionFilterLength
Detection filter is used to average the signal to reduce noise before threshold (PARAM_PEAK_THRESHOLD). Low detection filter length is useful when the detected signal is rather faint.
| #define PARAM_SURFACE_MODE "surface_mode" |
C# name: SensorParameter.SurfaceMode
Sort peaks and filter top, bottom or brightest profile.
| #define PARAM_THICKNESS_MODE "thickness_mode" |
C# name: SensorParameter.ThicknessMode
Calculates thicknesses for layers in line and batch callback functions. The first surface is returned as a world z-coordinate and following layers are calculated as thickness values. Note that thickness mode parameter is not saved to the recipe.
| #define PARAM_USER_FLASH_WRITE_TIME "user_flash_write_time" |
C# name: SensorParameter.UserFlashWriteTime
UTC timestamp when user data was written when available.
| #define PARAM_X_LIMIT_MAX "x_limit_max" |
C# name: SensorParameter.XLimitMax
Upper X threshold for statistics collection (PARAM_SATURATION_COUNT, PARAM_AVERAGE_FRAME_INTENSITY) and AGC input profile.
| #define PARAM_X_LIMIT_MIN "x_limit_min" |
C# name: SensorParameter.XLimitMin
Lower X threshold for statistics collection (PARAM_SATURATION_COUNT, PARAM_AVERAGE_FRAME_INTENSITY) and AGC input profile.