Skip to content

Update external trigger documentation/examples #277

Description

@codenio

I am trying to use External Trigger Input Pin TI for initiating dual-channel analog capture in ADALM2000 using the python binding.
I am unable to find the exact ways of implementing the same from the document and have the following queries.

  1. is this possible..?

  2. if yes, is the below code correct

    # Get Trigger Object
    trig=ain.getTrigger()
    # Set Analog Trigger Mode as External on TI pin
    trig.setAnalogMode(0,libm2k.EXTERNAL)
    trig.setAnalogMode(1,libm2k.EXTERNAL)
    # set Analog Channel 1  External Trigger Condition as RISING_EDGE_DIGITAL on TI Pin
    trig.setAnalogExternalCondition(0,libm2k.RISING_EDGE_DIGITAL)
    # set Analog Channel 2 External Trigger Condition as RISING_EDGE_DIGITAL on TI Pin
    trig.setAnalogExternalCondition(1,libm2k.RISING_EDGE_DIGITAL)
  3. if not, is there an alternative way for doing the same?

Thanks in advance. 🤝

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    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