LabVIEW Student Community

Highlighted

comparing arrays

Hello everyone,

When I compare two 1D arrays, the output boolean is not compatible with the input of the case structure.what should l do for it?

(in other words I want to use the result of this comparison to do an action, for example if it is more than 0 send 5 to the daq card)

Thank you so much

Best regards:)

0 Kudos
Message 1 of 5
(2,473 Views)
4 REPLIES 4

Re: comparing arrays

Hi,

When you compare two 1D array, the output would be Boolean array.

The input of the case structure is boolean not a boolean array. so accordingly you need to extract the required data out of the boolean array and then communicate with LabVIEW.

----------------------------------------------------------------

Ganesh RC

+91 81222 39331

ganesh.honeybees@gmail.com

0 Kudos
Message 2 of 5
(2,040 Views)

Re: comparing arrays

Thank you so much

Best regards

Sent from Samsung tablet

0 Kudos
Message 3 of 5
(2,040 Views)

Re: comparing arrays

Hi z.j.sh1993,

There is an option called elements and aggregates. Right click on the comparison pallete function and select compare mode. So when you select aggregates the output will be either true or false which you can directly connect to CS.

Ganesha Moorthy A

Message 4 of 5
(2,040 Views)

Re: comparing arrays

Nice Ganesha Moorthy A, but it will consider only the first element of both the arrays right..

0 Kudos
Message 5 of 5
(2,040 Views)
Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.