LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Comparing array elements value In labview

Solved!
Go to solution

I feel really dumb but what is negate option ? i cant find a tutorial that can help with this case

0 Kudos
Message 11 of 16
(1,950 Views)

It's one of the small yellow triangle nodes. It outputs the negative of whatever you wire into it. I belive you can find it on the Numeric palette.

 

The symbol looks like "-x"


GCentral
Message 12 of 16
(1,946 Views)

Unfortunately didn't solve my problem. it still compares the third element with first. instead of comparing second to 1st, 3rd to 2nd, 4th to 3rd..

0 Kudos
Message 13 of 16
(1,928 Views)

I'm pretty sure it doesn't.

 

What output did you want? (I used a slightly longer input here)

Example_VI.png


GCentral
0 Kudos
Message 14 of 16
(1,920 Views)

in your example if i wanna run the pattern twice how can i make it ? so in your example once it hit 4 , next number is again 5. so it would be 5-4=1 but instead of 1 it shows 5. I followed your pattern and once it hit the last one restarts from the beginning  

0 Kudos
Message 15 of 16
(1,900 Views)
Solution
Accepted by topic author Canucks.canucks

If I understand what you're asking correctly, you can remove the "0" value outside of the loop wired to the Shift Register.

I'm not certain that's really what you want, but it'll do what you ask.

 

An alternative might be to index the array before starting, take the 0th element, and add it to the end (if you just want one element added) or if you want a fixed number of repeats, to nest For loops.


GCentral
0 Kudos
Message 16 of 16
(1,895 Views)