Alessio, you said:
"This is configured to run for 5 seconds. There are 2 seconds before the trigger can be sensed.
If I apply a digital trigger before the 2 seconds, it is not recognized because there are
not enough samples in the buffer"
That's the problem I have!!
If I setup the DAQ board to get samples for 5 seconds with a pretrigger time of 2 seconds and, immediately, I raise the trigger, the acquisition starts, I can see the 5 seconds of samples but without pretrigger samples (I see the trigger event at the beginning).
In one sentence: after the "DAQmx Start Task.vi" call, a wait of 2 seconds should be inserted before raising the trigger.
Or did I misunderstand your answer?
Dario