LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Take time between two max values

Solved!
Go to solution

Hi people,

 

I have a problem and I have know idea how to solve...I need help.

 

The problem is that I want to take the time between two max values like in the graph you can see.

 

For example in the picture that I add

 

4,5 - 1,840 = 2,66

 

And put this value in the "Temps entre mostra".

 

This is that I want...

 

But this I think is very complicated because I don't know how to take the correctly time and do the substract...

 

 

thanks a lot,

 

 

Any solution?

Download All
0 Kudos
Message 1 of 62
(3,274 Views)

Anyone?

0 Kudos
Message 2 of 62
(3,220 Views)
Solution
Accepted by topic author jocuma

Hi jocuma,

 

I've tried something and hope that helps u.

Just created two arrays of temp and voltage. First i'll get the voltage value when it's more a certain value and of that same index get the time value and store in shift register.

When i get the second value higher than the threshold, I will get the time and subtract from previous value. 

Thanks
uday
Message 3 of 62
(3,209 Views)

Well,

 

temps = time no temperature.. 

 

I'm Catalan and maybe created some confuse things with the language Jaj...

 

 

 

0 Kudos
Message 4 of 62
(3,200 Views)
Doesn't matter temps / time /tempearture, did u get the logic first??
In the example array i've provided, u should time = 1840-1770 = 70. which is what u need r8?
Thanks
uday
0 Kudos
Message 5 of 62
(3,198 Views)

Yes,

 

I tried something like this....now I'm...try to tested the results

0 Kudos
Message 6 of 62
(3,196 Views)

It works but... for example

 

in the 17,990 - 17,910 =  0,08 or 18,010 - 18,000 = 0,010

 

 

this would be the correct time... :S 

 

 

I dont know if I explain good what I want..

 

 

0 Kudos
Message 7 of 62
(3,181 Views)

Yes, that's correct. for example, i've just taken some numbers. Good to know that it helped 🙂

Thanks
uday
0 Kudos
Message 8 of 62
(3,175 Views)

Uday it doesn't work good.

 

I pass my program ...It would be grateful if you can help me...

 

 

The program didn't substract good, because it substracts to 0 value and I want to substract the actual time from the last time...

 

 

Do you understand my problem?

 

srry for my english..

 

and thanks a lot,

 

 

Jocuma

 

0 Kudos
Message 9 of 62
(3,115 Views)

Please find the modified vi in LV11 version and check if it works!!!

Thanks
uday
0 Kudos
Message 10 of 62
(3,094 Views)