Skip to content

different ximea cameras have different behaviours when setting exposure above max #7

@carandraug

Description

@carandraug

When setting the camera exposure time with a value above the maximum exposure time of the camera, different cameras behave differently. One xiC will clip the value, while another xiQ will raise an error. This has been reported to ximea (it's ticket number 56174 on their internal ticket system).

With this code:

from ximea import xiapi

c = xiapi.Camera()
c.open_device()
print('maximum: ', c.get_exposure_maximum())
print('current: ', c.get_exposure())

c.set_exposure(c.get_exposure_maximum() + 1000)
print('after set above maximum: ', c.get_exposure())

c.start_acquisition()
print('after starting acquisition: ', c.get_exposure())

c.stop_acquisition()
c.close_device()

our xiC Model:MC023MG-SY-UB SN:CAMAU2018044 FwF1:01.25 API:V4.21.18.00 , returns:

maximum:  30000000.0
current:  38.0
after set above maximum:  30000998.0
after starting acquisition:  29999998.0

while our xiQ Model:MQ042MG-CM SN:23082950 FwF1: API:V4.21.18.00, raises an error:

maximum:  1000000.0
current:  28.0
Traceback (most recent call last):
[...]
ximea.xiapi.Xi_error: ERROR 11: Invalid arguments supplied

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions