LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string length

Hi,
 
I want to know how to create the opposite effect of string length. The string length tells you the length of a string.
If i have a number how do create a string of the number length.
 
thanks
0 Kudos
Message 1 of 5
(2,938 Views)
I don't think you can create one with a fixed length, use the string subset function to modify the length of an existing string.
0 Kudos
Message 2 of 5
(2,928 Views)
Hi Mr,
 
Attatched is a vi to get a string with specific length, initialized with spaces.
 
Cheers,
 
Xu
Message 3 of 5
(2,915 Views)
hi Xu
 
i have labview 5.1 so it it possible for you to show me a image of the vi you created.
 
thanks
0 Kudos
Message 4 of 5
(2,904 Views)
Hi Mr,
 
Here is the GIF.
1. initialize a U8 array of the length
2. convert the byte array to string
 
Xu
0 Kudos
Message 5 of 5
(2,894 Views)