LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting specific data from an array controlled by a boolean array

Hi!

 

I am trying to select specific data from a string array. The string data should be auto indexed to a string array indicator, but I just want specific values to be placed in the new array.

A boolean array controls when data should be auto indexed to the new string array. Every time a true appears in the for loop, the string data should be placed in the new string array, but I have a problem. I manage to pick the specific data to place in the new array, but i also get empty strings in the array when I am not supposed to write to the array. Instead of empty strings, I want my string data to be "compact". So when bool number 3 in the array is true, I want that string data to be in row 1, and not row 3.

 

Can you help me sort this one out?

 

Best regards

___________________________________
Is my avatar the dog from the fraggle rock?
Download All
0 Kudos
Message 1 of 5
(3,289 Views)

Here is what I think you want

Tim
GHSP
Message 2 of 5
(3,256 Views)

Here is a different version that also changes the size of the array for the indicator when the value is changed. You could do as much as you want here.

Tim
GHSP
Message 3 of 5
(3,255 Views)

Thank you! This solves my problem.

___________________________________
Is my avatar the dog from the fraggle rock?
0 Kudos
Message 4 of 5
(3,245 Views)

You should make the correct answer as the accepted solution so that everyone knows that you problems has been solved. Look at the bottom of the answer and you should see the blue box mark as accepted or something like that.

 

Glad I could help and thanks for the kudos.

Tim
GHSP
0 Kudos
Message 5 of 5
(3,239 Views)