ok thanks for your reply.
you are right. i want to output voltage to the oscilloscope . it is a sine wave.it could be 1 million,it could be 50,000thousands, any number it could be. obviosly i can wire Function generator to the signal input directly to the AO write,but i am not using this function generator deliberatly, because i want to send the signal(voltage) fixed number of periods andif i use our function generator i dont have periods as input there.and one other thing that my sine is also not true sine(example attached).this 1 million period will be run on oscilloscope for the some corresponding time. this periods must run on the ossilloscope and afterwards they must stop.another example if i send 50 periods.50 periods must run and then they must stop.the time of execution of these 50 must be corresponding time, means when 50 periods finish their execution,the indicator shows that they took xyz seconds for their completion. i am sending you three VIS.moreover i break and pause the Vi as well. i also tried implemet this concept. but it does not work.may be some bug in Ao start.
1VI) in this VI i am generating the array(i am looking for such an array with different amplitude and as i said N number of sine periods i would like to send to AO write.
2VI) in this VI i am showing how i am getting the required time, when i am giving/converting periods and frequency to total time. i dont know why it is not working. you know the periods i send finish early and the VI still not ends its execution.this is wrong time, because if i send 50 periods with 1.6Hz frequency then they must finish in corresponding time.if periods finishes and the time indicator shows,still some time left,that means there is something wrong.this is also one of my big problem
3VI)here my complete VI, where i am trying to buffer all these periods, pause them and resume them, but unfortunately it is also not working properly because when i send 20 periods and dont stop it.then it works fine, but when i send 20 periods, break it and i wanna resume it from the moment/period when i pause it starts agai from the begining. why?
i hope i explain all of my problem.