Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

facing problems in conversion

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.

0 Kudos
Message 1 of 10
(3,713 Views)

And what exactly is your question?

0 Kudos
Message 2 of 10
(3,708 Views)

actually i wanaa convert 1d array into boolean

0 Kudos
Message 3 of 10
(3,692 Views)

actually 1d boolean array into boolean

0 Kudos
Message 4 of 10
(3,691 Views)

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.

0 Kudos
Message 5 of 10
(3,686 Views)
I am trying to drive a dc motor by taking input signal from a device
0 Kudos
Message 6 of 10
(3,668 Views)

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?

0 Kudos
Message 7 of 10
(3,662 Views)
Yes I want it to be true if there is any true in the array,both elements to be added up .the array of boolean actually means iam accuring two signals from a device,and I. Want the value to be converted into single boolean
0 Kudos
Message 8 of 10
(3,659 Views)

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.

0 Kudos
Message 9 of 10
(3,655 Views)
Except - never, ever do an equality comparison with floating point numbers.
0 Kudos
Message 10 of 10
(3,652 Views)