跳转到内容

Auto Function Profile#

相机的 Auto Function Profile 功能可让您指定相机进行自动调节时如何平衡增益和曝光时间。

该功能的使用#

设置自动功能配置文件#

要设置自动功能配置文件:

  1. Set the Gain Auto auto function and the Exposure Auto auto function to Continuous.
  2. 设置 AutoFunctionProfile 参数为以下值(如果可用):

可用 Auto Function Profile#

最小化增益(= 增益最小值)#

在自动调节过程中,增益应保持尽可能低的水平。如果曝光时间达到上限,并且尚未达到目标亮度值,则将增加增益以达到目标。

最小化曝光时间(= 曝光最小值)#

在自动调节过程中,曝光时间应保持尽可能低的水平。如果增益达到上限,并且尚未达到目标亮度值,则将增加曝光时间以达到目标。

最小化快速增益(= 快速增益最小值)#

此配置文件与最小增益配置文件相同。不同之处在于,在亮度急剧变化或图像亮度急剧变化的情况下,它的反应更快。例如,在使用物镜转轮更换显微镜物镜时,就会发生这种情况。

最小化快速曝光时间(= 快速曝光最小值)#

此配置文件与最短曝光时间配置文件相同。不同之处在于,在亮度急剧变化或图像亮度急剧变化的情况下,它的反应更快。例如,在使用物镜转轮更换显微镜物镜时,就会发生这种情况。

智能#

在自动调节期间,增益尽可能保持最低,帧速率尽可能保持最高。

该过程分为四步:

  1. 相机调整曝光时间以达到目标亮度值
  2. 如果必须增加曝光时间以达到目标亮度值,相机便会如此执行,直到帧速率下降。
  3. If the frame rate drops, the camera stops increasing the exposure time and increases the gain until the AutoGainRawUpperLimit value is reached.
  4. When the AutoGainRawUpperLimit value has been reached, the camera stops increasing the gain and increases the exposure time until the target brightness value is reached. Increasing the exposure time results in a lower frame rate.

防闪烁 50 Hz/60 Hz#

优化了增益和曝光时间以减少闪烁。如果相机在光线以 50 Hz 或 60 Hz 频率闪烁的环境中操作,则闪烁的灯光会导致图像之间的亮度发生显著变化。启用防闪烁配置文件可以减少所捕获图像中闪烁的影响。

根据您当地的输电线频率选择频率(50 Hz 或 60 Hz)(例如,北美:60 Hz,欧洲:50 Hz)。

详情#

显示所有相机型号

相机型号 可用 Auto Function Profile
a2A640-240gmSWIR 最小化增益
最小化曝光时间
a2A640-240umSWIR 最小化增益
最小化曝光时间
a2A1280-80gmSWIR 最小化增益
最小化曝光时间
a2A1280-125umSWIR 最小化增益
最小化曝光时间
a2A1920-51gcBAS 最小化增益
最小化曝光时间
a2A1920-51gcPRO 最小化增益
最小化曝光时间
a2A1920-51gmBAS 最小化增益
最小化曝光时间
a2A1920-51gmPRO 最小化增益
最小化曝光时间
a2A1920-160ucBAS 最小化增益
最小化曝光时间
a2A1920-160ucPRO 最小化增益
最小化曝光时间
a2A1920-160umBAS 最小化增益
最小化曝光时间
a2A1920-160umPRO 最小化增益
最小化曝光时间
a2A1920-165g5cBAS 最小化增益
最小化曝光时间
a2A1920-165g5mBAS 最小化增益
最小化曝光时间
a2A2440-98g5cBAS 最小化增益
最小化曝光时间
a2A2440-98g5mBAS 最小化增益
最小化曝光时间
a2A2448-23gcBAS 最小化增益
最小化曝光时间
a2A2448-23gcPRO 最小化增益
最小化曝光时间
a2A2448-23gmBAS 最小化增益
最小化曝光时间
a2A2448-23gmPRO 最小化增益
最小化曝光时间
a2A2448-75ucBAS 最小化增益
最小化曝光时间
a2A2448-75ucPRO 最小化增益
最小化曝光时间
a2A2448-75umBAS 最小化增益
最小化曝光时间
a2A2448-75umPRO 最小化增益
最小化曝光时间
a2A2448-105g5cBAS 最小化增益
最小化曝光时间
a2A2448-105g5mBAS 最小化增益
最小化曝光时间
a2A2590-22gcBAS 最小化增益
最小化曝光时间
a2A2590-22gcPRO 最小化增益
最小化曝光时间
a2A2590-22gmBAS 最小化增益
最小化曝光时间
a2A2590-22gmPRO 最小化增益
最小化曝光时间
a2A2590-60ucBAS 最小化增益
最小化曝光时间
a2A2590-60ucPRO 最小化增益
最小化曝光时间
a2A2590-60umBAS 最小化增益
最小化曝光时间
a2A2590-60umPRO 最小化增益
最小化曝光时间
a2A2600-20gcBAS 最小化增益
最小化曝光时间
a2A2600-20gcPRO 最小化增益
最小化曝光时间
a2A2600-20gmBAS 最小化增益
最小化曝光时间
a2A2600-20gmPRO 最小化增益
最小化曝光时间
a2A2600-64ucBAS 最小化增益
最小化曝光时间
a2A2600-64ucPRO 最小化增益
最小化曝光时间
a2A2600-64umBAS 最小化增益
最小化曝光时间
a2A2600-64umPRO 最小化增益
最小化曝光时间
a2A2840-14gcBAS 最小化增益
最小化曝光时间
a2A2840-14gcPRO 最小化增益
最小化曝光时间
a2A2840-14gmBAS 最小化增益
最小化曝光时间
a2A2840-14gmPRO 最小化增益
最小化曝光时间
a2A2840-48ucBAS 最小化增益
最小化曝光时间
a2A2840-48ucPRO 最小化增益
最小化曝光时间
a2A2840-48umBAS 最小化增益
最小化曝光时间
a2A2840-48umPRO 最小化增益
最小化曝光时间
a2A2840-67g5cBAS 最小化增益
最小化曝光时间
a2A2840-67g5mBAS 最小化增益
最小化曝光时间
a2A3840-13gcBAS 最小化增益
最小化曝光时间
a2A3840-13gcPRO 最小化增益
最小化曝光时间
a2A3840-13gmBAS 最小化增益
最小化曝光时间
a2A3840-13gmPRO 最小化增益
最小化曝光时间
a2A3840-45ucBAS 最小化增益
最小化曝光时间
a2A3840-45ucPRO 最小化增益
最小化曝光时间
a2A3840-45umBAS 最小化增益
最小化曝光时间
a2A3840-45umPRO 最小化增益
最小化曝光时间
a2A4096-9gcBAS 最小化增益
最小化曝光时间
a2A4096-9gcPRO 最小化增益
最小化曝光时间
a2A4096-9gmBAS 最小化增益
最小化曝光时间
a2A4096-9gmPRO 最小化增益
最小化曝光时间
a2A4096-30ucBAS 最小化增益
最小化曝光时间
a2A4096-30ucPRO 最小化增益
最小化曝光时间
a2A4096-30umBAS 最小化增益
最小化曝光时间
a2A4096-30umPRO 最小化增益
最小化曝光时间
a2A4096-44g5cBAS 最小化增益
最小化曝光时间
a2A4096-44g5mBAS 最小化增益
最小化曝光时间
a2A4200-12gcBAS 最小化增益
最小化曝光时间
a2A4200-12gcPRO 最小化增益
最小化曝光时间
a2A4200-12gmBAS 最小化增益
最小化曝光时间
a2A4200-12gmPRO 最小化增益
最小化曝光时间
a2A4200-40ucBAS 最小化增益
最小化曝光时间
a2A4200-40ucPRO 最小化增益
最小化曝光时间
a2A4200-40umBAS 最小化增益
最小化曝光时间
a2A4200-40umPRO 最小化增益
最小化曝光时间
a2A4504-5gcBAS 最小化增益
最小化曝光时间
a2A4504-5gcPRO 最小化增益
最小化曝光时间
a2A4504-5gmBAS 最小化增益
最小化曝光时间
a2A4504-5gmPRO 最小化增益
最小化曝光时间
a2A4504-18ucBAS 最小化增益
最小化曝光时间
a2A4504-18ucPRO 最小化增益
最小化曝光时间
a2A4504-18umBAS 最小化增益
最小化曝光时间
a2A4504-18umPRO 最小化增益
最小化曝光时间
a2A4504-27g5cBAS 最小化增益
最小化曝光时间
a2A4504-27g5mBAS 最小化增益
最小化曝光时间
a2A4508-6gcBAS 最小化增益
最小化曝光时间
a2A4508-6gcPRO 最小化增益
最小化曝光时间
a2A4508-6gmBAS 最小化增益
最小化曝光时间
a2A4508-6gmPRO 最小化增益
最小化曝光时间
a2A4508-20ucBAS 最小化增益
最小化曝光时间
a2A4508-20ucPRO 最小化增益
最小化曝光时间
a2A4508-20umBAS 最小化增益
最小化曝光时间
a2A4508-20umPRO 最小化增益
最小化曝光时间
a2A5320-7gcBAS 最小化增益
最小化曝光时间
a2A5320-7gcPRO 最小化增益
最小化曝光时间
a2A5320-7gmBAS 最小化增益
最小化曝光时间
a2A5320-7gmPRO 最小化增益
最小化曝光时间
a2A5320-23ucBAS 最小化增益
最小化曝光时间
a2A5320-23ucPRO 最小化增益
最小化曝光时间
a2A5320-23umBAS 最小化增益
最小化曝光时间
a2A5320-23umPRO 最小化增益
最小化曝光时间
a2A5320-34g5cBAS 最小化增益
最小化曝光时间
a2A5320-34g5mBAS 最小化增益
最小化曝光时间
a2A5328-4gcBAS 最小化增益
最小化曝光时间
a2A5328-4gcPRO 最小化增益
最小化曝光时间
a2A5328-4gmBAS 最小化增益
最小化曝光时间
a2A5328-4gmPRO 最小化增益
最小化曝光时间
a2A5328-15ucBAS 最小化增益
最小化曝光时间
a2A5328-15ucPRO 最小化增益
最小化曝光时间
a2A5328-15umBAS 最小化增益
最小化曝光时间
a2A5328-15umPRO 最小化增益
最小化曝光时间
a2A5328-22g5cBAS 最小化增益
最小化曝光时间
a2A5328-22g5mBAS 最小化增益
最小化曝光时间
acA640-121gm 最小增益
最小曝光
acA640-300gc 最小增益
最小曝光
acA640-300gm 最小增益
最小曝光
acA640-750uc 最小化增益
最小化曝光时间
acA640-750um 最小化增益
最小化曝光时间
acA720-290gc 最小增益
最小曝光
acA720-290gm 最小增益
最小曝光
acA720-520uc 最小化增益
最小化曝光时间
acA720-520um 最小化增益
最小化曝光时间
acA800-200gc 最小增益
最小曝光
acA800-200gm 最小增益
最小曝光
acA800-510uc 最小化增益
最小化曝光时间
acA800-510um 最小化增益
最小化曝光时间
acA1280-60gc 最小增益
最小曝光
acA1280-60gm 最小增益
最小曝光
acA1300-60gc 最小增益
最小曝光
acA1300-60gm 最小增益
最小曝光
acA1300-60gmNIR 最小增益
最小曝光
acA1300-75gc 最小增益
最小曝光
acA1300-75gm 最小增益
最小曝光
acA1300-200uc 最小化增益
最小化曝光时间
acA1300-200um 最小化增益
最小化曝光时间
acA1440-73gc 最小增益
最小曝光
acA1440-73gm 最小增益
最小曝光
acA1440-220uc 最小化增益
最小化曝光时间
acA1440-220um 最小化增益
最小化曝光时间
acA1600-20gc 最小增益
最小曝光
acA1600-20uc 最小化增益
最小化曝光时间
acA1600-60gc 最小增益
最小曝光
acA1600-60gm 最小增益
最小曝光
acA1920-25gc 最小增益
最小曝光
acA1920-25gm 最小增益
最小曝光
acA1920-25uc 最小化增益
最小化曝光时间
acA1920-25um 最小化增益
最小化曝光时间
acA1920-40gc 最小增益
最小曝光
acA1920-40gm 最小增益
最小曝光
acA1920-40uc 最小化增益
最小化曝光时间
acA1920-40ucMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA1920-40um 最小化增益
最小化曝光时间
acA1920-40umMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA1920-48gc 最小增益
最小曝光
acA1920-48gm 最小增益
最小曝光
acA1920-50gc 最小增益
最小曝光
acA1920-50gm 最小增益
最小曝光
acA1920-150uc 最小化增益
最小化曝光时间
acA1920-150um 最小化增益
最小化曝光时间
acA1920-155uc 最小化增益
最小化曝光时间
acA1920-155ucMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA1920-155um 最小化增益
最小化曝光时间
acA1920-155umMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA2000-50gc 最小增益
最小曝光
acA2000-50gm 最小增益
最小曝光
acA2000-165uc 最小化增益
最小化曝光时间
acA2000-165um 最小化增益
最小化曝光时间
acA2040-25gc 最小增益
最小曝光
acA2040-25gm 最小增益
最小曝光
acA2040-25gmNIR 最小增益
最小曝光
acA2040-35gc 最小增益
最小曝光
acA2040-35gm 最小增益
最小曝光
acA2040-55uc 最小化增益
最小化曝光时间
acA2040-55um 最小化增益
最小化曝光时间
acA2040-90uc 最小化增益
最小化曝光时间
acA2040-90um 最小化增益
最小化曝光时间
acA2040-90umNIR 最小化增益
最小化曝光时间
acA2040-120uc 最小化增益
最小化曝光时间
acA2040-120um 最小化增益
最小化曝光时间
acA2440-20gc 最小增益
最小曝光
acA2440-20gm 最小增益
最小曝光
acA2440-35uc 最小化增益
最小化曝光时间
acA2440-35ucMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA2440-35um 最小化增益
最小化曝光时间
acA2440-35umMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA2440-75uc 最小化增益
最小化曝光时间
acA2440-75ucMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA2440-75um 最小化增益
最小化曝光时间
acA2440-75umMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA2500-14gc 最小增益
最小曝光
acA2500-14gm 最小增益
最小曝光
acA2500-14uc 最小化增益
最小化曝光时间
acA2500-14um 最小化增益
最小化曝光时间
acA2500-20gc 最小增益
最小曝光
acA2500-20gcMED 最小增益
最小曝光
最小化快速增益
最低曝光量
acA2500-20gm 最小增益
最小曝光
acA2500-20gmMED 最小增益
最小曝光
最小化快速增益
最低曝光量
acA2500-60uc 最小化增益
最小化曝光时间
acA2500-60um 最小化增益
最小化曝光时间
acA3088-16gc 最小增益
最小曝光
acA3088-16gm 最小增益
最小曝光
acA3088-57uc 最小化增益
最小化曝光时间
acA3088-57ucMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA3088-57um 最小化增益
最小化曝光时间
acA3088-57umMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA3800-10gc 最小增益
最小曝光
acA3800-10gm 最小增益
最小曝光
acA3800-14uc 最小化增益
最小化曝光时间
acA3800-14um 最小化增益
最小化曝光时间
acA4024-8gc 最小增益
最小曝光
acA4024-8gm 最小增益
最小曝光
acA4024-29uc 最小化增益
最小化曝光时间
acA4024-29um 最小化增益
最小化曝光时间
acA4096-11gc 最小增益
最小曝光
acA4096-11gm 最小增益
最小曝光
acA4096-30uc 最小化增益
最小化曝光时间
acA4096-30ucMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA4096-30um 最小化增益
最小化曝光时间
acA4096-30umMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA4096-40uc 最小化增益
最小化曝光时间
acA4096-40ucMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA4096-40um 最小化增益
最小化曝光时间
acA4096-40umMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA4112-8gc 最小增益
最小曝光
acA4112-8gm 最小增益
最小曝光
acA4112-20uc 最小化增益
最小化曝光时间
acA4112-20ucMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA4112-20um 最小化增益
最小化曝光时间
acA4112-20umMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA4112-30uc 最小化增益
最小化曝光时间
acA4112-30ucMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA4112-30um 最小化增益
最小化曝光时间
acA4112-30umMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA5472-5gc 最小增益
最小曝光
acA5472-5gm 最小增益
最小曝光
acA5472-17uc 最小化增益
最小化曝光时间
acA5472-17ucMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
acA5472-17um 最小化增益
最小化曝光时间
acA5472-17umMED 最小化增益
最小化曝光时间
最小化快速增益
最小化快速曝光时间
boA1936-400cc 最小化增益
最小化曝光时间
boA1936-400cm 最小化增益
最小化曝光时间
boA2448-250cc 最小化增益
最小化曝光时间
bo2448-250cm 最小化增益
最小化曝光时间
boA2832-190cc 最小化增益
最小化曝光时间
bo2832-190cm 最小化增益
最小化曝光时间
boA4096-93cc 最小化增益
最小化曝光时间
boA4096-93cm 最小化增益
最小化曝光时间
boA4096-180cc 最小化增益
最小化曝光时间
bo4096-180cm 最小化增益
最小化曝光时间
boA4112-68cc 最小化增益
最小化曝光时间
boA4112-68cm 最小化增益
最小化曝光时间
boA4500-45cc 最小化增益
最小化曝光时间
boA4500-45cm 最小化增益
最小化曝光时间
boA4504-100cc 最小化增益
最小化曝光时间
boA4504-100cm 最小化增益
最小化曝光时间
boA5120-150cc Auto Function Profile feature not supported
boA5120-150cm Auto Function Profile feature not supported
boA5120-230cc Auto Function Profile feature not supported
boA5120-230cm Auto Function Profile feature not supported
boA5320-150cc 最小化增益
最小化曝光时间
boA5320-150cm 最小化增益
最小化曝光时间
boA5328-100cc 最小化增益
最小化曝光时间
boA5328-100cm 最小化增益
最小化曝光时间
boA6500-36cc 最小化增益
最小化曝光时间
boA6500-36cm 最小化增益
最小化曝光时间
boA8100-16cc 最小化增益
最小化曝光时间
boA8100-16cm 最小化增益
最小化曝光时间
boA9344-30cc Auto Function Profile feature not supported
boA9344-30cm Auto Function Profile feature not supported
boA9344-70cc Auto Function Profile feature not supported
boA9344-70cm Auto Function Profile feature not supported
boA13440-17cm Auto Function Profile feature not supported
daA720-520uc 最小化增益
最小化曝光时间
daA720-520um 最小化增益
最小化曝光时间
daA1280-54uc 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz
daA1280-54um 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz
daA1440-220uc 最小化增益
最小化曝光时间
daA1440-220um 最小化增益
最小化曝光时间
daA1600-60uc 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz
daA1600-60um 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz
daA1920-15um 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz
daA1920-30uc 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz
daA1920-30um 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz
daA1920-160uc 最小化增益
最小化曝光时间
daA1920-160um 最小化增益
最小化曝光时间
daA2448-70uc 最小化增益
最小化曝光时间
daA2448-70um 最小化增益
最小化曝光时间
daA2500-14uc 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz
daA2500-14um 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz
daA3840-45uc 最小化增益
最小化曝光时间
daA3840-45um 最小化增益
最小化曝光时间
puA1280-54uc 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz
puA1280-54um 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz
puA1600-60uc 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz
puA1600-60um 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz
puA1920-30uc 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz
puA1920-30um 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz
puA2500-14uc 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz
puA2500-14um 最小化增益
最小化曝光时间
智能
防闪烁 50 Hz
防闪烁 60 Hz

示例代码#

ace Classic/U/L GigE 相机#
// Set the auto function profile to Gain Minimum
camera.AutoFunctionProfile.SetValue(AutoFunctionProfile_GainMinimum);
// Set the auto function profile to Exposure Minimum
camera.AutoFunctionProfile.SetValue(AutoFunctionProfile_ExposureMinimum);
// Enable Gain and Exposure Auto auto functions and set the operating mode to Continuous
camera.GainAuto.SetValue(GainAuto_Continuous);
camera.ExposureAuto.SetValue(ExposureAuto_Continuous);
INodeMap& nodemap = camera.GetNodeMap();
// Set the auto function profile to Gain Minimum
CEnumParameter(nodemap, "AutoFunctionProfile").SetValue("GainMinimum");
// Set the auto function profile to Exposure Minimum
CEnumParameter(nodemap, "AutoFunctionProfile").SetValue("ExposureMinimum");
// Enable Gain and Exposure Auto auto functions and set the operating mode to Continuous
CEnumParameter(nodemap, "GainAuto").SetValue("Continuous");
CEnumParameter(nodemap, "ExposureAuto").SetValue("Continuous");
// Set the auto function profile to Gain Minimum
camera.Parameters[PLCamera.AutoFunctionProfile].SetValue(PLCamera.AutoFunctionProfile.GainMinimum);
// Set the auto function profile to Exposure Minimum
camera.Parameters[PLCamera.AutoFunctionProfile].SetValue(PLCamera.AutoFunctionProfile.ExposureMinimum);
// Enable Gain and Exposure Auto auto functions and set the operating mode to Continuous
camera.Parameters[PLCamera.GainAuto].SetValue(PLCamera.GainAuto.Continuous);
camera.Parameters[PLCamera.ExposureAuto].SetValue(PLCamera.ExposureAuto.Continuous);
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Set the auto function profile to Gain Minimum */
errRes = PylonDeviceFeatureFromString(hdev, "AutoFunctionProfile", "GainMinimum");
CHECK(errRes);
/* Set the auto function profile to Exposure Minimum */
errRes = PylonDeviceFeatureFromString(hdev, "AutoFunctionProfile", "ExposureMinimum");
CHECK(errRes);
/* Enable Gain and Exposure Auto auto functions and set the operating mode to Continuous */
errRes = PylonDeviceFeatureFromString(hdev, "GainAuto", "Continuous");
CHECK(errRes);
errRes = PylonDeviceFeatureFromString(hdev, "ExposureAuto", "Continuous");
CHECK(errRes);
# Set the auto function profile to Gain Minimum
camera.AutoFunctionProfile.Value = "GainMinimum"
# Set the auto function profile to Exposure Minimum
camera.AutoFunctionProfile.Value = "ExposureMinimum"
# Enable Gain and Exposure Auto auto functions and set the operating mode to Continuous
camera.GainAuto.Value = "Continuous"
camera.ExposureAuto.Value = "Continuous"
其他相机#
// Set the auto function profile to Minimize Gain
camera.AutoFunctionProfile.SetValue(AutoFunctionProfile_MinimizeGain);
// Set the auto function profile to Minimize Exposure Time
camera.AutoFunctionProfile.SetValue(AutoFunctionProfile_MinimizeExposureTime);
// Enable Gain and Exposure Auto auto functions and set the operating mode to Continuous
camera.GainAuto.SetValue(GainAuto_Continuous);
camera.ExposureAuto.SetValue(ExposureAuto_Continuous);
INodeMap& nodemap = camera.GetNodeMap();
// Set the auto function profile to Minimize Gain
CEnumParameter(nodemap, "AutoFunctionProfile").SetValue("MinimizeGain");
// Set the auto function profile to Minimize Exposure Time
CEnumParameter(nodemap, "AutoFunctionProfile").SetValue("MinimizeExposureTime");
// Enable Gain and Exposure Auto auto functions and set the operating mode to Continuous
CEnumParameter(nodemap, "GainAuto").SetValue("Continuous");
CEnumParameter(nodemap, "ExposureAuto").SetValue("Continuous");
// Set the auto function profile to Minimize Gain
camera.Parameters[PLCamera.AutoFunctionProfile].SetValue(PLCamera.AutoFunctionProfile.MinimizeGain);
// Set the auto function profile to Minimize Exposure Time
camera.Parameters[PLCamera.AutoFunctionProfile].SetValue(PLCamera.AutoFunctionProfile.MinimizeExposureTime);
// Enable Gain and Exposure Auto auto functions and set the operating mode to Continuous
camera.Parameters[PLCamera.GainAuto].SetValue(PLCamera.GainAuto.Continuous);
camera.Parameters[PLCamera.ExposureAuto].SetValue(PLCamera.ExposureAuto.Continuous);
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Set the auto function profile to Minimize Gain */
errRes = PylonDeviceFeatureFromString(hdev, "AutoFunctionProfile", "MinimizeGain");
CHECK(errRes);
/* Set the auto function profile to Minimize Exposure Time */
errRes = PylonDeviceFeatureFromString(hdev, "AutoFunctionProfile", "MinimizeExposureTime");
CHECK(errRes);
/* Enable Gain and Exposure Auto auto functions and set the operating mode to Continuous */
errRes = PylonDeviceFeatureFromString(hdev, "GainAuto", "Continuous");
CHECK(errRes);
errRes = PylonDeviceFeatureFromString(hdev, "ExposureAuto", "Continuous");
CHECK(errRes);
# Set the auto function profile to Minimize Gain
camera.AutoFunctionProfile.Value = "MinimizeGain"
# Set the auto function profile to Minimize Exposure Time
camera.AutoFunctionProfile.Value = "MinimizeExposureTime"
# Enable Gain and Exposure Auto auto functions and set the operating mode to Continuous
camera.GainAuto.Value = "Continuous"
camera.ExposureAuto.Value = "Continuous"

您也可以使用 pylon Viewer 轻松设置参数。