Hi reddish
Sorry for the late reply.
That was a very helpful tip, thanks a lot! It really simplified the handling of all the necessary functions.
I was able to get some good results, however, I encountered an interesting phenomena. For my project I used Analog Out (1 channel) as well as Digital In (1 pin), where the signal that comes out of the analog out is basically digital, so I could connect them to each other to test the delay when starting the trigger (this is only for testing, later Analog Out will have a "real" analog output). Now, if I would use the PC trigger or trigger on AnalogOut1 (adapting the corresponding functions; when I checked with an external oscilloscope, the Analog Out always acted as expected, so there must be something going on with Digital In), I would see a kind of random delay of between the start of the recording at Digital and the start of the analog output. However, if I use Digital In as the trigger, I see no delay. What could be the reason for this?