12-05-2013 03:50 AM
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
12-12-2013 04:39 AM
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)
12-12-2013 04:53 AM
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,
12-12-2013 04:55 AM
Here the result of the screenshoot of the array2 where is in the foorloop1
12-12-2013 05:15 AM
12-12-2013 06:05 AM
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.
12-12-2013 06:18 AM
12-12-2013 08:40 AM
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!
12-12-2013 08:55 AM
You keep adding code when you should be removing code.
12-12-2013 09:01 AM
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