Hi Damien,
from your description is hard to recognize, so I ask you at first, do you want to do something like Retrigger?
Because when you want to acquire "finite Samples" you don´t need a while loop and then the problem comes from NI-DAQmx when you want to read a second time!
Perhaps you should program something like a state machine!
1. Initialize Program
2. Configure Acquisition
3. Acquire Finite Samples
4. Analyze or Filter
5. Save to disk
6. End Program or go back to Configure Acquisition
This is much better than a huge Sequence Structure. Have a look at the Template Browser.
And: you have two times the Dev1 for Master and Slave in your program. I think this is wrong.
Regards
Alex Rudolph
NI Switzerland