LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an easy way to replace individual elements in one string array from another striing array?

Solved!
Go to solution

Is the result string control empty or did you enter   43 4E 31 30 30 33 30 30 31 41

 

Enter this string and it should work.

 

I forgot the set the string control on the front panel to default to that string.

I have updated the VI so you could down load it again.

 

Omar
Message 11 of 13
(582 Views)

Thank you! If I want to change the input from hex to the decimal equivalent, ie CN1003001G, would the same approach work?

0 Kudos
Message 12 of 13
(574 Views)
Solution
Accepted by chuck72352

CN1003001G? I'm not sure how this is the decimal equivalent? I still looks like a string to me.

 

The example shows how the use the Replace Array Subset.

But as was mentioned by others, it would be best to get your data in a 2D array.

 

Now if you use an 2D array of strings or a 2D array of ints that is a matter for you to answer.

What works best for you. Either way the approach would still be the same.

Omar
Message 13 of 13
(567 Views)