Skip to content

ximea triggers with software even when trigger mode is not software #3

@carandraug

Description

@carandraug

Documentation for XI_PRM_TRG_SOFTWARE parameter says:

Generates an internal trigger. XI_PRM_TRG_SOURCE have be set to TRG_SOFTWARE.

However, an internal trigger is generated and an image is acquired even if set to hardware trigger:

from ximea import xiapi

img = xiapi.Image()
c = xiapi.Camera()
c.open_device()

c.set_trigger_source('XI_TRG_EDGE_RISING')
c.set_trigger_selector('XI_TRG_SEL_FRAME_START')

c.start_acquisition()

c.get_image(img, 1) # will timeout because there's been no trigger yet

# Either set_trigger_software should raise an exception because we are not
# on software trigger mode, or it should do nothing because the trigger should
# be ignored. But instead, we do get an image.
c.set_trigger_software(1) # also, the value for this seems to make no difference
c.get_image(img, 1) # should have had timeout but does not

Also, what's the point of passing a value to set_trigger_software? It's not documented anywhere and seems to do nothing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions