LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate a string

Solved!
Go to solution

Is there a way to create an empty string of arbitary length?

What I mean is

I have an integer as input

This integer tells the length of the string

An empty string (containing only 00h) with that length is the output

0 Kudos
Message 1 of 2
(1,987 Views)
Solution
Accepted by topic author Kirillenseer

Create a U8 array (using Initialize Array with value 0) and feed it into Byte Array to String. You can also auto-index an empty string out of a for loop and wire the resulting array into a Concatenate function, which will convert it to a single string.


___________________
Try to take over the world!
Message 2 of 2
(1,981 Views)