08-17-2023 09:33 PM - edited 08-17-2023 09:39 PM
Hello
I'm trying to find all the peaks of a signal to calculate the damping of it, so i just need the amplitud and the # of peaks, the problem is that the "Peak Detector" is not working how i want.
I connected the wires where they should go and it just gave me nonsense, i tried playing with the width and threshold but all stay the same, i saw the example from VI, videos, help, etc but still can't see how this should work or if there is another way to do it.
If anyone could guide me from this i would appreciate it.
Another thing I would like to ask is if it is possible to change the time form of the signal, ie instead of real time to relative time (0 to 10 second)
Here is the .VI with the signal.
Thanks
08-17-2023 11:58 PM
VI ignores peaks if the fitted amplitude is less than threshold, if your aim is to find number of cycle, you will have to go with a different logic
08-19-2023 06:27 AM
@FCance wrote:
Another thing I would like to ask is if it is possible to change the time form of the signal, ie instead of real time to relative time (0 to 10 second)
The answer for this is to right-click the Chart, go to Properties, and change the Display Format of the Time axis to "Relative Time". In your case, the range was -3 to 57 s (without running the code).
Bob Schor