LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Derivation calculation

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

0 Kudos
Message 1 of 6
(2,498 Views)

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.

0 Kudos
Message 2 of 6
(2,485 Views)

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? 

0 Kudos
Message 3 of 6
(2,473 Views)

Thats the general idea. See the attached snippet for an idea of what to do.

Differentiation.png

0 Kudos
Message 4 of 6
(2,462 Views)

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.  

 

0 Kudos
Message 5 of 6
(2,448 Views)

@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.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 6 of 6
(2,417 Views)