Hi @attila,
thank you for your answer, it helped me out. Another question though. I want to generate a pattern that look like the signals below, they should repeat every 6ms. The time both the ACT and SEND signal are not zero is called Tact=0.2ms. The ACT signal should alternate with a frequency of 21kHz.
I created 2 arrays and loaded the ACT and SEND values into them respectively.
sendSignal = (c_double*samples)()
actSignal = (c_double*samples)()
What seems to be the problem right now, is to find the correct values for the runTime, waitTime and the divider. I am not sure how to select them and my trial and error approach was not successful. I want to generate 8 different ACT and SEND signal pairs, i.e. use all 16 GPIOs. Later on, I want both the ACT and SEND signal pair to have a specific delay in the range from 0 to 350ms. The maximum Tact=400ms. So I am thinking to define the signals for 1ms and then wait for the remaining 5ms.
dwf.FDwfDigitalOutRunSet(hdwf, c_double(runTime))
dwf.FDwfDigitalOutWaitSet(hdwf, c_double(waitTime))
FDwfDigitalOutDividerSet(hdwf, c_int(0), c_int(signalDiv))
Also, in the GUI I can set a frequency value, I did not find how to manipulate it