I ran the VI and it is able to write lvm files into my computer, the format is close to what I want, however the elapsed time disappeared.
If you can have a look at the test001.lvm file I have attached previously, you can see that the leftmost column contains the elapsed time of the data taken. I count the number of samples within each second to figure out wat the sampling rate is, without the elapsed time I am not sure how to determine whether the program is writing data at the desired sampling rate.
With the sampling rate network variable, if I want to make the sampling rate user specified, I will need to create a control for the sampling rate at the computer.vi, assign the value to the network variable and then put the variable onto the cRIO VI, do the appropriate conversion and wire it to the period of the timed loop. Am I right?
And with all the tank indicators for each signal, do i have to use the array to cluster method you suggested before? Can I simply drag and drop the 20 AI shared variables onto the block diagram of computer.vi and create an indicator for each?
I have also just realised that the clock time on the cRIO is different to the "real" time even after I changed the timezone in the network setting on MAX. So the time stamp on the cRIO VI and computer VI are showing two different times. How can i fix the time on the controller?