12-21-2009 11:39 AM
Hi, everyone,
In my program, I subract one array from another. It should be like X(i) - Y(i)
Can someone explain to me how I can make sure that I'm subracting ith value of array 2 from the ith value of array one? Not , for example, X(i)- Y(i+1)?
Thank you
Solved! Go to Solution.
12-21-2009 11:57 AM
In LabVIEW the polymorphism of the substrat function let's you directly substract one array from the other. If I understand you correctly, this will be what you want.
Also seems that you are new to the concepts: Take a look at the auto-indexing posibillities of for loops.
Felix
12-21-2009 11:59 AM - edited 12-21-2009 11:59 AM
Hopefully, you are not doing anything more complicated than this:
This does X(i) - Y(i).
12-21-2009 12:04 PM
Thanks everyone.
I am using subtract function, but I wasn't sure if it did X(i)-Y(i).