Hi @JeromeBoateng
See the WF SDK/ samples/ py/ DigitalIn_Trigger.py or other similar examples and the pdf manual.
Remove or set to zero option to have DIN0... order:
dwf.FDwfDigitalInInputOrderSet(hdwf, c_int(0))
Set sampling format to 32 bit and use c_uint samples:
dwf.FDwfDigitalInSampleFormatSet(hdwf, c_int(32))
To trigger on any rising edge on DIN0-19:
dwf.FDwfDigitalInTriggerSet(hdwf, c_int(0), c_int(0), c_int(0xFFFFF), c_int(0))