Hao,
I have taken a look at your VI that you attached. Here is what I have found in relation to your 3 questions,
1) The reason you were only displaying 1 second of data had to do with the way you were manipulating the chart. I took out a lot of that and started over and got it to work. You must make sure to clear the chart before you begin your program.
2) The way that you were figuring out your time was very convoluted. I changed it so that it is using the tick count which is a lot more accurate. I then used shift registers to compare the two values.
3) The reason the program is running so slow is that you are acquiring a lot of data. When you specify >3000 pts (like the attached program did), LabVIEW is stuck in that VI while the data is
acquired. So if you are acquiring data in one minute chunks (50Hz and 3000 pts), will not have any functionality during that time. If you want more functionality from your program, you can scan for 1 second’s worth of data and do that over and over again. Other than that, you must wait until the acquisition is complete.
I have attached a VI that does what I think you want it to do. If not, it is a good base to start from. I do not have LV 5.1, so I saved it from 6 -> 5.0. It should work though,
Andrew