I want to repeatedly record data using a software trigger. I used the acquire N scans analog software trig.vi example and adjusted the input paramteres for my needs. For one aquicisition the vi works fine. Now i want to repeat the triggering and recording process because i want to do averaging. i tried to use a for-loop or a while loop as shown in attachement, but i get errors. does anybody know which adjustements i have to make to get the vi running ?