LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display all dynamic data out of while loop

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.

0 Kudos
Message 1 of 7
(3,873 Views)

Hi,

 

Check this!!!

 

Regards,


Nitzz

(Kudos are always WelcomeSmiley Wink)

0 Kudos
Message 2 of 7
(3,869 Views)

@ 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.

0 Kudos
Message 3 of 7
(3,861 Views)

Now check it..

 

Regards..

0 Kudos
Message 4 of 7
(3,854 Views)

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.

Download All
0 Kudos
Message 5 of 7
(3,849 Views)

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?

 

Display all data.png

0 Kudos
Message 6 of 7
(3,824 Views)

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.

 

 

Message 7 of 7
(3,815 Views)