LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Spliting text

Solved!
Go to solution

           5     1090223      224805
           0     1090223      224947
           5     1090223      224948
           0     1090223      225338
           5     1090223      225339
           0     1090223      230219
           5     1090223      230220
           0     1090223      231856
           5     1090223      231857
           0     1090223      232736
           5     1090223      232737
           0     1090223      234019
           5     1090223      234020
           0     1090223      234906
           5     1090223      234907
           0     1090224       04302
           5     1090224       04303
           0     1090224      134918
           5     1090224      134919
           0     1090224      135121
           5     1090224      135122
           0     1090226      135230

 

Up here is the sample data i get from my client... now they ask me to record the data every 5 minutes(clockwise time).

the five infront indicates the rain.

 

for example:  


           0     1090224      134918
           5     1090224      134919
           0     1090224      135121
           5     1090224      135122
           0     1090226      135230

 

 

1090224 1350

1090224 1355

1090225 0

 

The program have to this type of output how to do this??? plz help

 

0 Kudos
Message 1 of 33
(4,821 Views)

Sorry, but I don't understand what you want.  Can you add some more detail?

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 2 of 33
(4,816 Views)

       Rain     Date          Time


           0     1090223      231856
           5     1090223      231857
           0     1090223      232736
           5     1090223      232737
           0     1090223      234019
           5     1090223      234020
           0     1090223      234906
           5     1090223      234907
           0     1090224       04302
           5     1090224       04303
           0     1090224      134918
           5     1090224      134919
           0     1090224      135121
           5     1090224      135122
           0     1090226      135230

 

Red line indicates the rain data

Output:

For this data:        5     1090223      231857

Output first data wil be: 0.5  1090223 2320<--round up to the nearest using clockwise

   5     1090223      232737

  0.5  1090223 2330<--round up to the nearest using clockwise

   5     1090223      234020

  0.5  1090223 2345<--round up to the nearest using clockwise

For this data

  5     1090224      135122 <-- 0.5  1090224 1355<--round up to the nearest using clockwise

  0     1090226      135230<--- here the date shows 1090226 the previous date is not raining so record but i need to state the output as this  0  1090225 0000

                                                                                                                                                                                  
I want to programmatically done this how to do this need some help?.. Plz

 

0 Kudos
Message 3 of 33
(4,803 Views)

       Rain     Date          Time


           0     1090223      231856
           5     1090223      231857
           0     1090223      232736
           5     1090223      232737
           0     1090223      234019
           5     1090223      234020
           0     1090223      234906
           5     1090223      234907
           0     1090224       04302
           5     1090224       04303
           0     1090224      134918
           5     1090224      134919
           0     1090224      135121
           5     1090224      135122
           0     1090226      135230

 

Red line indicates the rain data

Output:

For this data:        5     1090223      231857

Output first data wil be: 0.5  1090223 2320<--round up to the nearest using clockwise

   5     1090223      232737

  0.5  1090223 2330<--round up to the nearest using clockwise

   5     1090223      234020

  0.5  1090223 2345<--round up to the nearest using clockwise

For this data

  5     1090224      135122 <-- 0.5  1090224 1355<--round up to the nearest using clockwise

  0     1090226      135230<--- here the date shows 1090226 the previous date is not raining so record but i need to state the output as this  0  1090225 0000

                                                                                                                                                                                  
I want to programmatically done this how to do this need some help?.. Plz

 

0 Kudos
Message 4 of 33
(4,799 Views)

Red line indicates the rain data

Output:

For this data: 5 1090223 231857

Output first data wil be: 0.5 1090223 2320<--round up to the nearest using clockwise

5 1090223 232737

0.5 1090223 2330<--round up to the nearest using clockwise

5 1090223 234020

0.5 1090223 2345<--round up to the nearest using clockwise

For this data

5 1090224 135122 <-- 0.5 1090224 1355<--round up to the nearest using clockwise

0 1090226 135230<--- here the date shows 1090226 the previous date is not raining so record but i need to state the output as this 0 1090225 0000

 

I want to programmatically done this how to do this need some help?.. Plz

0 Kudos
Message 5 of 33
(4,795 Views)
Solution
Accepted by topic author jeyanthi

This should give you a good start.

 

Still not sure what you mean by "round up to the nearest using clockwise".  And no idea about your last sentence(s?).  It would probably help if you used commas and periods.  Otherwise, what you are asking is almost incoherent.

 

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




Message 6 of 33
(4,780 Views)

Hi Jeyanthi,

 

     I monitored few of your post. your questions are little wage to understand.

 

like Ravens mentioned

 

Jeyanthi,

 

You'll need to rewrite question again.  Neither your subject line nor your message make any sense to me. 

 

The troublesome phrases:

"the out is in fraction"

"output in 17.22"

"value in point form"

"connect it to true case"

"if its a number I will pass to false case"

 

In this post its very difficul to understandyour question

 

mattbradley mentioned

 

Still not sure what you mean by "round up to the nearest using clockwise".  And no idea about your last sentence(s?).  It would probably help if you used commas and periods.  Otherwise, what you are asking is almost incoherent.

 

so before posting your questions put it in detail and explain your problem clearly,It is easy to us to answer your question and also usefull to u to get quick answers.

Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
0 Kudos
Message 7 of 33
(4,752 Views)

Rain  Date(1YYMMDD) Time(HHMMSS) 

     5     1090223                231857

 

Red line indicates the rain data

Output:

For this data: 5 1090223 231857

Output first data wil be: 0.5 1090223 2320<--round up to the nearest using clockwise

5 1090223 232737

0.5 1090223 2330<--round up to the nearest using clockwise

5 1090223 234020

0.5 1090223 2345<--round up to the nearest using clockwise

For this data

5 1090224 135122 <-- 0.5 1090224 1355<--round up to the nearest using clockwise

0 1090226 135230<--- here the date shows 1090226 the previous date 190225 is not raining so record but i need to state the output as this 0 1090225 0000

 

I want to programmatically done this how to do this need some help?.. Plz

 

 

Actually if the time is let say 120102, i only round up the first4 digit, round up should b round up to 1205

So does 120600 i round up , it should round up 1210

 

Im sorry im not good in English ...I will try my best to explain..can u understand this?

0 Kudos
Message 8 of 33
(4,732 Views)

Hi Jeyanthi,

 Did you tried, which mattbradley suggested.

Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
0 Kudos
Message 9 of 33
(4,722 Views)
Here's a solution I came up with. I don't think it's as elegant as MattBradley's, though: http://decibel.ni.com/content/docs/DOC-4146
Jeff | LabVIEW Software Engineer
0 Kudos
Message 10 of 33
(4,690 Views)