adi.axi_aion_trig module

class adi.axi_aion_trig.axi_aion_trig(uri='')

Bases: context_manager, attribute

axi_aion_trig IIO Device Interface

This class provides an interface to the ‘axi_aion_trig’ IIO device, allowing control and monitoring of its voltage channels and associated attributes.

Parameters

uristr, optional

URI of the IIO context to connect to. Defaults to an empty string.

Attributes (per voltage channel)

For each voltage channel (e.g., voltage0, voltage1, …), the following properties are dynamically created:

  • trig{N}_enbool

    Enable or disable the trigger for channel N.

  • trig{N}_phaseint

    Phase setting for channel N.

  • trig{N}_statusint

    Status of the trigger for channel N.

  • trig{N}_frequencyint

    Frequency setting for channel N.

  • trig{N}_internal_bsync_enablebool

    Enable or disable internal bsync for channel N.

  • trig{N}_output_enablebool

    Enable or disable output for channel N.

  • trig{N}_trigger_nowbool

    Trigger an immediate event on channel N.

  • trig{N}_trigger_select_gpio_enablebool

    Enable or disable GPIO selection for trigger on channel N.

Raises

Exception

If the ‘axi_aion_trig’ device is not found in the IIO context.

Examples

>>> trig = axi_aion_trig("ip:192.168.1.100")
>>> trig.trig0_en = True
>>> print(trig.trig0_status)