08-22-2012 01:13 PM
Hi
I am actually writing a vi which uses while loop for measure the voltages at difference values.
for example :
at power supply voltage v1,I am measuring x volts. And this loop continues for like 10 times.
i.e at v2, I measure x1 volt.. at v3, I measure x2 volts.
I just need to find the difference in the measuring voltages i.e (x1-x), (x2-x1),(x3-x2) and so on. And then get the highest difference value.
Can anyone help me out in this. Appreciate a lot !
Thanks
Solved! Go to Solution.
08-22-2012 01:29 PM - edited 08-22-2012 01:29 PM
I would use a for loop since you are iterating a set number of times. Use a shift register to store the previous voltage. You can then subtract your current reading from the previous reading. Send this output through an autoindexing tunnel. You will want to throw out the first value (x-???) using the Array Subset and then you can use the Array Max & Min to get the highest difference.
Hopefully this example will help.
08-22-2012 01:53 PM
Hey Thanks
My vi actually looks like this where I have defined the conditions of initial and the maximum voltage.
Its just at different voltages from e3631 , i get different different results at e34405.
All i want is difference in different voltages from e34405 and their max difference.
I got confused with your idea of using shift registers.
Would be glad if you could explain it more.
08-22-2012
02:34 PM
- last edited on
11-11-2024
05:40 PM
by
Content Cleaner
A decent example of the basics of shift registers
If you don't know about shift registers, I'm guessing you are pretty new to LabVIEW. You might want to check out LabVIEW 101.