LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

iIwant find and replace value and combine two row which having G

Solved!
Go to solution

Dear sir ,

 

Here i have Given a example my file which conatin G and R  i want to find all R and replace with G. and cobine in in one column.. example is given belowe

11 03 30 00 00  0.0000000  0 18G02G04G05G09G10G12G15G17G25G26G27R01
                                R02R12R13R22R23R24
................................................................................................

................................................................................................

................................................................................................

 11 03 30 00 00 30.0000000  0 18G02G04G05G09G10G12G15G17G25G26G27R01
                                R02R12R13R22R23R24

.............................................................................

...................................................................................

here i have attached file and my programme

...........................................................................

 11 03 30 00 01  0.0000000  0 17G02G05G09G10G12G15G17G25G26G27R01R02
                                R12R13R22R23R24


.............................................

Download All
0 Kudos
Message 1 of 11
(2,580 Views)
Solution
Accepted by topic author Julian_prince

Perhaps it would help us understand better if you'd put the expected result in a screen-shot of your front panel.  I can't tell what you need.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 2 of 11
(2,571 Views)

Dear sir,

 

here i am unable to insert the image so i have attched the image file,

0 Kudos
Message 3 of 11
(2,564 Views)

Savvy?

 

Example_VI.png

 

You'll probably need to fix something, but at least my picture matches yours (except for the empty element at [0,0]).

 

 

Spoiler
Rube-Goldberg candidate?

 

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 11
(2,560 Views)

Dear sir ,,

 

Thanks for solution that is same what i want,, but  i want complete value which are inside of the file, only that RG row should combine,,and other parameter should remain as it is..

0 Kudos
Message 5 of 11
(2,544 Views)

here is programme what imade from your image..

0 Kudos
Message 6 of 11
(2,543 Views)

This?

 

Example_VI.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 7 of 11
(2,538 Views)

@julian prince wrote:

here is programme what imade from your image..


That "image" is a VI Snippet.  You can drag it to your block diagram and it'll magically become LabVIEW code.  🙂

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 8 of 11
(2,537 Views)

Dear sir,

 

Thanks for your reply,, but this programme work for single slot , i want to run it for entire file ,

 

here i have attached file and programme.. 

Download All
0 Kudos
Message 9 of 11
(2,532 Views)

I think you're missing what I've done.  I've addressed every group of data from your file in the While loop, with the shift register passing the "offset past match" to the "offset" terminal in the next iteration.

 

test_2[1].png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 10 of 11
(2,530 Views)