LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The function of get final time value of waveform doesn't work properly

I am working an application try to use get final time value of  a waveform, to determine when stop sending the waveform. Attached is my simlified code, the program supposes to stop after 10 sec. However it stops in about 1 sec, although the time in the plot seems correct. Anybody can tell me what I am doing wrong.
 
       Thanks.
 
   Guang
0 Kudos
Message 1 of 2
(2,405 Views)
What values are you using in your cluster for FSample and samples?  It would have been good if you put in the values you were using and saved them as defaults before posting the VI.  Also, please wire up your stop button.
 
The loop will run as fast as it possibly can, the generation of the waveform is based on that, not on any real time clock.  A higher FSample it runs slower, a lower FSample it runs faster.
 
Put a wait statement inside the loop with the frequency of 1 multiplied by 1000 (to go from seconds to milliseconds) and wire that into the wait statement.  Then the program will take 10 seconds to run.
 
What are your trying to do with this program?
0 Kudos
Message 2 of 2
(2,392 Views)