LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Take time between two max values

Solved!
Go to solution

Program_1.png

0 Kudos
Message 21 of 62
(1,187 Views)

Took a little while, did it in brute force method (No optimization done, if u want u can).

I hope it'll help.

Thanks
uday
Message 22 of 62
(1,181 Views)

Uday... I connect correctly good? because it doesn't work :S

0 Kudos
Message 23 of 62
(1,171 Views)
In the first loop it was 7,4 instead of 4.5 isn't it?
Thanks
uday
0 Kudos
Message 24 of 62
(1,167 Views)

Yes but now I couldn't try...with 7,4 and I put a simulator with 4.5

0 Kudos
Message 25 of 62
(1,166 Views)

Hi tood have you got de VI program please? it would be useful ...because I'll try faster if its works

 

 

thanks a lot 🙂

0 Kudos
Message 26 of 62
(1,156 Views)
In the code i have written, you will get peak only when your value is greater than 7,4. Now the data is coming in the other way? Or you changed and want to try that?

In the third loop why are you initializing the array? Are you getting Time at Peak Indicator values properly?
Thanks
uday
0 Kudos
Message 27 of 62
(1,133 Views)

Yes i tried with other value not 7,4 but this is the good value. I have to incialize the array because the time comes from thee shift register and if i dont inicialize the array it appears an error dimension...

 

I tried other things and the diffenrence no appears in the table i couldnt understand...

 

Thanks uday

0 Kudos
Message 28 of 62
(1,127 Views)

Hi...I don't know why in the table doesn't appear any number is very strange... i couldn't understand

 

 

Any solution?

 

 

thanks again....

0 Kudos
Message 29 of 62
(1,098 Views)

Check without indexing or using for loop and get the time at that time. Will that give exact time? 

 

I will explain what i have done there.

 

-Get the index in Voltage Array where peak happens.

-Using the same index get time value in the Time array.

-Once you get all the peak times, i am getting differences between them.

Thanks
uday
0 Kudos
Message 30 of 62
(1,084 Views)