LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disabled Array.

Hi,

 

I have a problem.

I notice that only when my Array2 where all the inputs are greyed and disabled, the "empty array?" VI will give me a true when I connected to an boolean indicator.

When I connect my Array1 where 2 of my inputs are white and 2 of my inputs are greyed and disabled, the "empty array" gave me a false when I connected to an boolean indicator.

Is the cause because of the disabled input?

How can I make my Array1 same as my Array2 as in making the input disabled. Is there a Disable Array Subset VI function?

Do anyone have the same experience or know the way to solve this?

 

Alan.

 

0 Kudos
Message 1 of 4
(2,592 Views)

In your array 2 you don't have any elements thats why you are getting true out of the empty array function. But in your array 1 you have the space constants (I guess) and thats why you are not getting True. If you really want to check no real character is there you can use the trim whitespace function inside a for loop and then use the empty array function after the for loop. If you need a better acurate solution please post the code that you have developed (In 2011 version)

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 4
(2,586 Views)
That makes no sense. An array element that is 'greyed' means that element is empty - not disabled and if you have 2 elements in an array that have some value, then obviously that array is not empty.
0 Kudos
Message 3 of 4
(2,582 Views)

@

I reckon whenever I used a while loop to loop my data and set the output to enable index, this phenomena would happen.

But then I did a different approach to my problem by using a boolean and case and it worked perfectly though. 

Thanks to all whom tried to help! (:

 

Alan

0 Kudos
Message 4 of 4
(2,532 Views)