LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I initialize a big string?

Hello,
 
   How do you initialize a long string? I need to create a 5000 char string and set the initialize values of each char to a hex 0XFF (assuming that each char in a string is a 8 bit value).
Regards,


Kaspar
0 Kudos
Message 1 of 2
(2,545 Views)

Easiest way I can think of would be to drop a U8 constant with value 255, and use it as one input to the "Initialize Array" function, with 5000 going to the dimension size.  Then use the Byte Array to String function to convert it to string type.

Good luck!

Message 2 of 2
(2,542 Views)