05-10-2010 04:00 AM
5 20100205 124017
5 20100305 124017
5 20100405 124017
Hi i need to insert data in between the data..For example:
5 20100205 124017
0 20100206 080000
0 20100207 080000
.
.
.
0 20100228 080000
0 20100301 080000
.
.
.
5 20100305 124017
How to do this please help..
05-10-2010 04:03 AM
05-10-2010 04:03 AM - edited 05-10-2010 04:04 AM
05-10-2010 04:25 AM
05-10-2010 04:52 AM
It was there in 8.0. Look at the picture, find it on the array palette. It's been there since I've been playing with LabVIEW.
James
05-10-2010 05:01 AM
If I understand correctly you need to find the index where to insert the data.
What is the format of your array? 2D array of integers/floats? 2D array of strings? 1D array of cluster?
One way to do it is to go through the existing data and compare the time data (I guess that's what it is). Let's say the date of the data to insert is D_i, then cycle through the existing array elements until D_i < date of array element. Insert it there.
Other methods: append the data at the end, then sort the array (easy when dealing with an 1D array of cluster and the date is the first cluster element).
For numeric data you can also extract the date column and find the index using "Threshold 1D array".