LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

insert data between the array

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

 

0 Kudos
Message 1 of 6
(2,576 Views)

hi jeyanthi,

  Cant you use insert into array vi?

 

 

T hanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 2 of 6
(2,573 Views)

Use Insert Into Array.

 

Edit: sorry, too slow...

Message Edited by dan_u on 05-10-2010 11:04 AM
0 Kudos
Message 3 of 6
(2,571 Views)
I want to do programatically in labview 8.0.. tht i able to insert the data in according to it data..help with this plz
0 Kudos
Message 4 of 6
(2,555 Views)

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

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 5 of 6
(2,537 Views)

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

 

Message 6 of 6
(2,533 Views)