Hello;
The way that you have structured your DAQ tasks is not the most appropriate one. By having the AI Confing, AI Start, AI CLear, AO Config and AO Clear VIs inside a while loop, you will have a Sofware timed operation.
The fact that you are missing some trigger pulses is probably due to the jittering that is inherent to Software timed systems.
The best way to go about that is to have a hardware timed system controlling the trigger pulses. To accomplish that, you will need to use both general purpose counters of your DAQ board.
You will have the first counter configured as retriggerable pulse generation and the second counter as pulse train generation. Then, you connect the external trigger pulse to the first counter gate, and its output to the secon
d counter gate.
The you can use the second counter output as the AI Start Scan and AO Update pulses.
That will give you a trully hardware timed operation.
Hope this helps.
Filipe A.
Applications Engineer
National Instruments