04-27-2011 05:31 AM
Hello,
I have the following problem:
In a WHILE loop, I am acquiring a signal (dynamic data) until I say stop. After stopping the loop, I would like to display all the aquired data in a graph and do further calculation based on the entire set of data.
The signal type is dynamic data. For every loop, 100 samples are taken.
I have attached the VI which shows the problem in a very simple way. It is based on the LabVIEW tutorial "Temperature Analysis".
In the attached VI, you can see that I am indexing the dynamic data so that it is all available at the end of the loop. However, I am not sure how to procede from here on to have it displayed in a graph.
Any help is appreciated.
04-27-2011 05:58 AM
Hi,
Check this!!!
Regards,
Nitzz
(Kudos are always Welcome)
04-27-2011 06:19 AM
@ Nitzz: Your solution does not seem to work, because the graph only shows the last 100 samples of the last loop run.
Per loop it is 100 samples. If I do 15 runs, the number of samples of the entire data is 1500, which I want to see in one graph.
04-27-2011 07:02 AM
Now check it..
Regards..
04-27-2011 07:41 AM
Thanks for your effort. However, I think I should clarify a few things.
I need all the data in one array (I think) that I can display with the graph. The other reason for the array is that I want to determine the maximum and minimum value of the entire data set. Also fitting a curve in to the data points would be something I might do in the future. Basically, I want to do the exact same stuff done in the Temperature Analysis (link above) with dynamic data.
For general info:
The previous stated problem is a simplified method for previewing recorded data. I am recording data with a queue and want to preview all of it before I decide whether or not to save it.
I have attached Nitzz file and my file saved as a previous version so that more people can read it.
04-28-2011 06:57 AM
Alright, I did some more searching (some other people on this board seemed to have similar problems) and trying and came up with a solution that seems to work. X-axis now has no time, so I need to know how to get the time back. However, I still would like to understand how to do this with the dynamic data.
I don't know if / how I can translate the 1D array of dynamic data, which to my understanding is actually a 2D array, back to a 1D array or simply just dynamic data. It seems that Nitzz method and the indexing method both are similar.
Out of the while loop, I get an array like
100 samples
100 samples
100 samples
...
which I would like to be
100 samples 100 samples 100 samples ...
Any thoughts?
04-28-2011 08:05 AM
Hi,
As per your first post requirement
I suggest you to use shift register on boundary of while loop and then use append waveform to have all data out of while loop, see the diagram.