Skip to content

Camera.trigger(self) fails (calls non-existing execute_command) #11

Open

Description

@eudoxos

Hi, thank you for your fantastic wrapper.

One issue in aravis.py:

    def trigger(self):
        """
        trigger camera to take a picture when camera is in software trigger mode
        """
        self.execute_command("TriggerSoftware")

however, execute_command is not defined.

Should this be perhaps replaced by calling self.cam.software_trigger() directly? Just guessing, unable to test at the moment.

Activity

  1. oroulet commented on Nov 28, 2017

    @oroulet
    Collaborator

    probably an aravis API change. try to change it to self.dev.execute_command
    Does that work? If so please send patch

  2. eudoxos commented on Nov 28, 2017

    @eudoxos
    ContributorAuthor

    That works, good :) Will do pull request soon. One more question, how do I retrieve the buffer afterwards? If I call pop_frame(), it waits forever.

  3. oroulet commented on Nov 28, 2017

    @oroulet
    Collaborator

    pop_frame waits for a new frame. probably som configuration with your camera. all cameras are differnts, want different parameters, etc

  4. eudoxos commented on Nov 28, 2017

    @eudoxos
    ContributorAuthor

    For the record, aravis already wraps software trigger as arv_camera_software_trigger, callable as aravis.Camera.software_trigger(). In internally executes SoftwareTrigger anyways.

  5. oroulet commented on Nov 28, 2017

    @oroulet
    Collaborator

    If aravis camera object has it then you can call it from python camera object directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions