07-04-2013 10:56 PM
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.
07-04-2013 11:10 PM
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)
07-04-2013 11:20 PM
07-08-2013 04:30 AM
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