11-01-2017 06:15 PM
Hi,
I have an array of U8 data that I need to convert to a single string of numbers.
The array is quite large and I can convert to a single string of numbers by looping through the array and converting each element to a numeric string & concatenating each converted element to string.
I am wondering what is the most efficient/faster way of converting?
Thanks & Regards,
Shane.
11-01-2017 06:36 PM
Please attach your VI instead of a picture.
There are many ways to do that. What other methods have you tried? How do you measure speed?
11-01-2017 06:52 PM
If you want space padded to 3 digits, just wire the array to the primitive and insert a "concatenate string" to the output. No loop needed.
If you want zero padded to 3 digits, I would recommend a LUT if the array is large. There are only 256 different strings.
11-01-2017 08:17 PM
There is also the Array To Spreadsheet String.
11-01-2017 08:26 PM
@crossrulz wrote:
There is also the Array To Spreadsheet String.
except you would need to get rid of the delimiters later. 😄 (see also)
11-02-2017 04:09 AM
@altenbach wrote:
@crossrulz wrote:
There is also the Array To Spreadsheet String.
except you would need to get rid of the delimiters later. 😄 (see also)
Yeah, unfortunately you can't use "Empty string" as delimiter.
/Y
11-02-2017 06:10 AM
@Yamaeda wrote:
@altenbach wrote:
@crossrulz wrote:
There is also the Array To Spreadsheet String.
except you would need to get rid of the delimiters later. 😄 (see also)
Yeah, unfortunately you can't use "Empty string" as delimiter.
/Y
Borderline bug if you'd ask me. Totally no need for it not to work.
11-02-2017 10:40 AM
wiebe@CARYA wrote:
Borderline bug if you'd ask me. Totally no need for it not to work
So why did my idea only get 28 votes since 2009 😞
11-02-2017 11:36 AM
@altenbach wrote:
wiebe@CARYA wrote:
Borderline bug if you'd ask me. Totally no need for it not to workSo why did my idea only get 28 votes since 2009 😞
+1 on that. I also don't understand why my ideas don't get votes (especially my new find and replace ideas 1 and 2 (plug)).
It seems most people only watch the "hot ideas", so only few new and hot ideas ever get noted. I think it should go.
11-02-2017 12:01 PM - edited 11-02-2017 12:02 PM
wiebe@CARYA wrote:
+1 on that. I also don't understand why my ideas don't get votes (especially my new find and replace ideas 1 and 2 (plug)).
Yes, the IPE is a bit crippled when it comes to indexing. there is also this very old idea, of course. 😄
(But yes, ever since the page redesign, I rarely browse the ideas exchange anymore.)