11-28-2011 08:34 AM
Hello Sir/madam,
Iam a newbie in labview here is a program where im facing a problem in conversion Please provide me assistance in the program.
11-28-2011 08:47 AM
And what exactly is your question?
11-28-2011 12:28 PM
actually i wanaa convert 1d array into boolean
11-28-2011 12:30 PM
actually 1d boolean array into boolean
11-28-2011 12:54 PM
You did not need to repost the VI again. Twice. You already posted in the original message.
As for your question: you can't (under any programming language). You either index out a specific element, or perform a Boolean operation on all of the elements, such as And Array Elements or Or Array Elements. Which is more appropriate for you I have no idea since I do not know what the code is doing.
11-28-2011 09:01 PM
11-28-2011 09:22 PM
That didn't clarify anything.
You have a 1-D array of booleans you want to convert to a single boolean. How? Do you want it to be True if you have all Trues in the array? Be true if there are any trues in the array? Do you want the first element of the array? The last element? What does the array of booleans actually mean and how do you want to convert that to a single boolean?
11-28-2011 09:33 PM
11-28-2011 09:40 PM
Then use OR Array elements. It takes a boolean array, if any element is True, the output is True. If all elements are False, the output is False.
11-28-2011 09:47 PM