ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

adding data to an array

Solved!
Go to solution

hi need help.. i need to add missing data for the array

YY-Year

MM-Month

DD-Date

mm-minutes

ss-seconds

 

Data  1YYMMDD mmss0 

20.8 1090828 05050
1.2   1090829 10150
7.2   1090901 08400

 

the above array is the data where i need to insert data for data til 090831

 

as below

 

Data  1YYMMDD mmss0 

20.8 1090828 05050
1.2   1090829 10150

0      1090830 0

0      1090831 0

7.2   1090901 08400

 

 

how to do this? and i need to check for every month is there data missing inbetween? Plz help

 

 

 

 

0 Kudos
Message 1 of 4
(3,251 Views)
Solution
Accepted by topic author jeyanthi
Yes.  You will need to iterate through your array.  Index out the current index and the index +1.  Translate the text into dates and use the date functions to determine if a date is missing.  If not, increase the index by 1 and repeat.  If a date is missing, insert a row and set the date to be the last date +1.  Repeat increasing your index which should make it the row you just added.
0 Kudos
Message 2 of 4
(3,246 Views)
can i get small example for this..in labview 8.0..plz..thk u
0 Kudos
Message 3 of 4
(3,240 Views)

Jeyanthi...

 

Ravens fan has given you the complete algorith to do the same describing each and individual steps....jusy simply follow it...

Regards
Guru (CLA)
Message 4 of 4
(3,212 Views)