LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph in specific time

I have a VI that reads values of temperature each minute,and then this program reads that string and build and array with each value stored in a line of an array.

 

What I want to do is to read a certain month, day and hour . Then based on that selection display the values of that period of time (1 hour). If for example yuu choose 12:00 a.m. but theres no data of some period of time like this:

 

26.30789112:18 a.m.28/08/2012

32.20162012:19 a.m.28/08/2012

.

.

.

.

32.20162013:00 a.m.28/08/2012

 

It should fill with zeroes.

 

The other case should be analize it from a day and month.

 

 

I really need help :c

 

 

Download All
0 Kudos
Message 1 of 2
(2,071 Views)

If there's only one reading per minute, you could start with a 60 element array filled with 0.  Parse each line and when you find lines for the hour you want, use the minutes as the index and the replace array subset function to replace the 0 with the parsed value.

0 Kudos
Message 2 of 2
(2,046 Views)