LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Spliting text

Solved!
Go to solution

Hi,

 

Thanks Matt Bradley... it works thank you very much...

 

Can anyone help me with this also..

 

Below is the output sample i get using the method that been given by Matt.

 

0.5 1090313 1330
0.5 1090313 2310
0.5 1090313 2310

0.5 1090314 0525
0.5 1090314 0755
0.5 1090314 0755
0.5 1090314 0755

 

But i wat the result to be something like this below

 

0.5 1090313 1330

1.0 1090313 2310<-2 data combined for the same day so 1.0

0.5 1090314 0525

1.5 1090314 0755<-- three data combined so 1.5

How to do this? Need help. Plz.

0 Kudos
Message 11 of 33
(1,768 Views)

Hi jeyanthi,

 

You need to program something to track the days. Assuming the data points are sequential, it should be too bad. You could use shift registers to remember the number of data points on the same day and the previous "timestamp" before you write out to file.

Jeff | LabVIEW Software Engineer
0 Kudos
Message 12 of 33
(1,744 Views)

Hi JeffL,

 

Can i get an example for it ? I really dont knw how to do this?..Plz help.

0 Kudos
Message 13 of 33
(1,723 Views)

I'm attaching a couple images of a VI I quickly cooked up. It's taking an array of strings that I assume are the date stamps and I make the assumption that every reading is 0.5. You'll note the shift register brings the value on the right shift of the loop back to the beginning of the loop for the next iteration. I would ask you to also check out the LabVIEW help on shift registers.

 

 

Jeff | LabVIEW Software Engineer
Download All
Message 14 of 33
(1,699 Views)

hi

 

i still not able to find the solution still the output i have got is somethg like this

 

0.5 1090313 01330
1.0 1090313 02310
1.0 1090313 02310
1.0 1090314 00520
1.0 1090314 00525
1.0 1090314 00540
1.0 1090314 00755
1.0 1090314 00755
1.0 1090314 00755
1.0 1090314 00760
1.0 1090314 00760
1.0 1090314 00760
1.0 1090314 00760
1.0 1090314 00760
1.0 1090314 00760
1.0 1090314 00760

 

need help plz

0 Kudos
Message 15 of 33
(1,639 Views)

Hi jeyanthi,

what havo you done so far? Where do you have problems?

 

Try to help.

Mike

0 Kudos
Message 16 of 33
(1,632 Views)

hi Mike,

 

I still confuse in using shift register...

 

how to sum similar data.... in an array..

 

 

 

 

0 Kudos
Message 17 of 33
(1,624 Views)

Hi jeyanthi,

how do you have this data? Is it a txt file or ist it already an array?

 

Mike

0 Kudos
Message 18 of 33
(1,613 Views)

To combine the date values, add a loop after your current creation of the result array.

 

In this loop, add a empty array with shift registers and your current result array.

Compare the shifted array's last value (date) to the current result array (date):

- If equal add the values

- If not equal, add a row to the shifted array.

 

After the loop the shifted array should hold the summarized values.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 19 of 33
(1,594 Views)

hi Mike i get the data from text and able to covert to every 5 min data..the data i kept in an array.

the array is as below:

0.5 1090313 1330
0.5 1090313 2310
0.5 1090313 2310

0.5 1090314 0525
0.5 1090314 0755
0.5 1090314 0755
0.5 1090314 0755

 

But i wat the result to be something like this below

 

0.5 1090313 1330

1.0 1090313 2310<-2 data combined for the same day so 1.0

0.5 1090314 0525

1.5 1090314 0755<-- three data combined so 1.5


hi yamaeda can i get example how to do tis?, It seems hard for me i have never been used shift register before.

 Need help. Plz.

0 Kudos
Message 20 of 33
(1,570 Views)