LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Take time between two max values

Solved!
Go to solution

Here I put the new program... I did new things but if you open and see the indicator "element" doesn't appear nothing i couldn't understand

0 Kudos
Message 31 of 62
(583 Views)

Hi jocuma,
can you try these things and let me know the output?
-Create an indicator after second for loop to get the indices/places where the peak occurs in amplitude.
-Please check the modified code and let me know if it works or not?
-Since i don't have hardware i am unable to simulate the data. So please provide screenshot or values of what you get next time in the indicators (Array,Time at peak all those)

Thanks
uday
0 Kudos
Message 32 of 62
(558 Views)

Hi Uday I think I find the problem but I couldn't solve it

 

I add the two screen shoots of where is and what happens...

 

In the array2 it doesn't work correctly

 

I add "prova1" modificated and the problem you can see in the pictures that I add

 

 

thanks a lot uday,

 

 

Download All
0 Kudos
Message 33 of 62
(553 Views)

Here the result of the screenshoot of the array2 where is in the foorloop1

 

Download All
0 Kudos
Message 34 of 62
(551 Views)
Hi,
Did you try my new code, i didn't see that build array before firstloop1. why you added??
-And why build array for temps is 2d?? use only once.check my code again. and post the screenshots.
Thanks
uday
0 Kudos
Message 35 of 62
(547 Views)

I tried your code and it happens the same error like mine in the first loop I add the array2 like in the photos

 

this doesn't work because is 0 0 0 0 0 0 0

 

in your max_min program you sent it was 1 2 3 4 5

 

I think the problem is in the first loop.

 

 

0 Kudos
Message 36 of 62
(536 Views)
Connect the Blue shift register from for loop to the outer while loop and make shift register and try.
-I think for every while loop iteration its causing/overwriting the values.
-Did you clear the extra build arrays??
Thanks
uday
0 Kudos
Message 37 of 62
(532 Views)

First I add a picture when I put the indicator where you want and the arrays always appears 000000 :S

 

Then the shift register I add is something like this?

 

Because if it's this has the same error :S

 

 

If you don't have the hardware You can use maybe the NI Max I'm using the USB-6009

 

thanks a lot uday!

Download All
0 Kudos
Message 38 of 62
(523 Views)

You keep adding code when you should be removing code.

 

lessCode.png

0 Kudos
Message 39 of 62
(509 Views)

Hi tood first thanks for the help too,

 

Which I have to remove? because I think the problem is in the first for loop...if I put an indicator in there it appears always.. 0 0 0 0 and the other for loops if the one doesn't work the others too..

 

 

Have you got any solution? Is the for -loop only will run once? :S

 

thanks

0 Kudos
Message 40 of 62
(505 Views)