LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you save characters in an array and then output the characters as a string one by one.

I want to know how to save a number of different characters to an array. then after open this array and read these values one by one as a string.
0 Kudos
Message 1 of 8
(3,430 Views)

You can use the build array function to put several strings into an array.  If you are capturing strings one at a time, use a loop with a shift register, and build array.

To output the strings one at a time, use a loop with index array.  Both functions are found in the Array palette.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 8
(3,418 Views)

Hi,

Once i have enter the data in the main  vi,will this then be stored in the array. Then how do i go about getting the characters out of the array one after another and if i probe the output of the built array will the output be a string.

0 Kudos
Message 3 of 8
(3,407 Views)
Like I said, use index array function, or use a loop with indexing enabled on the input.  See attached vi.
- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 8
(3,391 Views)

Hi,

I am using  labview 6.1, how do i get the string 4 in the main vi to display both of the strings that i have entered.

thank you

0 Kudos
Message 5 of 8
(3,377 Views)

Input to your loop has indexing enabled.  What happens is that on the first iteration, the indicator displays the first string in the array, then in the next iteration, the indicator displays the second string in the array, the first one is overwritten.  This happens so fast that all you see is the second one.  Look at attached vi in LV6.1 to see how to concatenate both into one indicator.  You really need to study Labview to learn the functions.  Go to NI's website and search for Labview tutorials.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 8
(3,370 Views)

Hi,

How would you create a string that automatically increment, until it reached a numercal number and the output was the string that you created.

0 Kudos
Message 7 of 8
(3,359 Views)

I'm not sure what you mean.  You can't increment a string.  Using a loop, the i terminal automatically increments on every iteration.  You can convert that number into a string by using the Decimal Number to String function.

Instead of asking these very basic questions here, why don't you look for labview tutorials on the NI website.  You would learn a lot more, a lot faster.

You can start here

 
- tbob

Inventor of the WORM Global
0 Kudos
Message 8 of 8
(3,354 Views)