07-29-2014 09:39 PM - edited 07-29-2014 09:39 PM
Hi Forum,
I would like to stream a waveformdata to a tdms file until the signal (see attachment) is not more rising, is there a function in labview that could give me the derivation of the signal and stops as soon it reaches that level?
Thanks in advance
Martin
07-29-2014 09:50 PM
Assuming that you do not know the value at which the measurements are going to level out, would it not just be easier to take the last 5 measurements from the array and examine the difference between each number and the one preceding it? You could then stop the program if the maximum difference is less then some threshold.
07-29-2014 10:09 PM
Yes the problem is that he threshold it is variable so i cant set it on a known value. You mean i could calculate the difference between each sample and set a threshold to stop it?
07-29-2014 10:33 PM
Thats the general idea. See the attached snippet for an idea of what to do.
07-30-2014 12:09 AM
Hi thanks for your answer, as i understand I still ihave to set a threshold on this example the problem is the threshold would be always different.
07-30-2014 06:39 AM - edited 07-30-2014 06:40 AM
@Martin88 wrote:
Hi thanks for your answer, as i understand I still ihave to set a threshold on this example the problem is the threshold would be always different.
I think you may be misunderstanding the suggestion. The "threshold" isn't the value that the waveform stops rising, it's the difference in successive points that lets you decide that it's no longer rising. If you used one of the derivative VIs, you'd still need to decide how close to zero the slope needs to be to decide that it's not rising any more. That'd be the same "threshold" that you'd use here.
It's certanily possible that I'm misunderstandind the suggesting. In which case, ignore me.