12-03-2013 03:38 AM
Use fewer local variables. You have a couple of places where the local variable is read before the terminal is written. That is a "stale" value.
You are only taking one sample at a time, so the output type of "array" isn't valid. Either read more samples, or use a scalar.
This isn't very clean, but it might be closer to what you're looking for:
12-03-2013 08:40 AM
Hi Uday, I'm use the version 10.
What you modify in the program?
Because the problem is the same...
There is no substract between the actual number from last number
in the 17,990 - 17,910 = 0,08 or 18,010 - 18,000 = 0,010
Now the substract is from the actual number from the first number...and this is wrong...
thanks for the help...I no see any solution... :((
12-03-2013 09:01 AM
Hi Todd,
This I tried to do in Labview and it doesn't work...because I need to use Analog 1D DBL 1chan Nsamples.
I don't know if I'm explained good about what I'm looking for....
I have a voltage and time...this voltage has diferent peaks at max value.
I want to calculate de tame between every peak that I have...for example see in the picture.
thanks a lot people for the help...is very importan for me!!
12-03-2013 09:31 AM
You have stated the problem very clearly. Why nSamples? In the VI I downloaded, you had the sample count set to one - which will return an array with only one value per channel.
12-03-2013 09:37 AM
Because if you put Nsamples You can use the Array Max and Min and this help to know wich is the max value every moment....
In the program you draw this vlaue you put a control...this depends on the measurement....
You see the picture called "time"...is it possible to do this?
thanks for the help...my english is bad and sometimes Is it difficult for me to understand...
Jocuma.
12-03-2013 09:50 AM
I think I understand.
If you take the maximum value of an array that only has one value - you get that value.
max ( [2, 5, 3] ) = 5
max ( [-2] ) = -2
12-03-2013 09:52 AM
Yes...Because I only want the Voltage Peaks....and when it appears this peaks...there is a time between peak1 to peak2
this time Is what I want to save in a table...see this picture.. :S
thanks! 🙂
12-03-2013 10:04 AM
Hi Uday, Here you have the samples that I take...
12-03-2013 10:26 AM
12-03-2013 10:29 AM
Yes I get the peaks beacuase 4.xxx is the constant voltage and when it's 7.xxx is the peak that I have...
you understand me?
Always there is a voltatge 4.xxx and when there is 7xxx is the peak that I have.
thanks Uday,