def configureExternalTrigger(module, channel, extSource, trigBehavior=4, sync=1):
    """Configure external trig for given channel
    extSource:    0 EXT, 4000-4007 PXI-PXI7
    trigBehavior: 1 HIGH, 2 LOW, 3 RISE, 4 FALL
    sync:         0 NO-CLK, 1 10-CLK
    """
    return module.AWGtriggerExternalConfig(channel, int(extSource), int(trigBehavior), int(sync))