LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to find whether the number is positive or negative in an array and i need to disply the index(es) of negative numbers

Hi all,

 

  I need to find the number is positive or negative in an array elements.

If it is negative i need to disply the index of that array element.

0 Kudos
Message 1 of 3
(5,075 Views)

Hi sujithsb,

 

testing polarity is usually done like this:

check.png

Finding indices is up to you.

Seems to be homework - and it's a good way to learn how to handle things in LabVIEW... 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(5,063 Views)

@sujithsb wrote:

Hi all,

 

  I need to find the number is positive or negative in an array elements.

If it is negative i need to disply the index of that array element.


 1a.png

 

 

there would be a fairly simple solution for that.  Smiley Wink


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 3
(5,058 Views)