LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measurement in a singe period of a sampled signal

Hello!
 
I need some help i my LabView programming (quite new in this area).
 
I have a couple of sampled signals logged with NI VI LOGGER and now imports these into LabView for analyze and processing.
The first step I do is to import the signals with "Read From Measurement File" and then it's possible to graph, filter and make FFT and it works OK, but what I need to do is to measure the peak value of single periods of the signal and this in intervals of example (1000-2000samp, 4000-5000samp and so on).
This data should then be saved and processed further.
I've tried to split the signal with "Find All Zeros" and a couple of other ideas but I don´t get it working.
Also, the frequency of the signal is not steady, it is varying over time. 
 
I hope you understand my problem and maybe can give me some help. (I can attach picture or signalsample if thats necessary)
 
Thank you!
 
0 Kudos
Message 1 of 9
(3,701 Views)
No one with any ideas?
0 Kudos
Message 2 of 9
(3,673 Views)
Yes, would be good to attach a picture.

There are some vis called PeakDetect and/or similar in the analysis package.
What was the problem with splitting the signal with the Find all Zeros? If noise was the problem, you could use advanced triggering with a windowed threashold.

Felix
0 Kudos
Message 3 of 9
(3,665 Views)

OK, I attach some files to explain what I want to do:

First an example of a sampled signal to process (example.txt).

Then what I've done in LabView so far (sofar.jpg)

And a picture explaining what I want to do with the signal (peak.jpg).

As you see I want to save the peak-peak value of every cycle in a new array, is this possible? How?

0 Kudos
Message 4 of 9
(3,654 Views)
Hm, the files don't seems to be attached...?
0 Kudos
Message 5 of 9
(3,646 Views)
If you Preview your post after attaching the file, the attachment gets disconnected. Attach last.

Lynn
Message 6 of 9
(3,643 Views)
 
Download All
0 Kudos
Message 7 of 9
(3,638 Views)
You can use the 'Trigger and Gate' Express vi. make a start trigger a bit above 0 and a stop trigger below 0. Define some Hysteresis. Place the Express in a loop. With autoindexing you recive the Portions of interest. then it is simple min/max. Here is a fast draft, not yet checking the number of cycles.

Felix
Message 8 of 9
(3,625 Views)

Thank you!

This way works quite as I want.

But I still got a problem, it seems that the output from max-min function don´t have the right values if you compare to the waveform? I dont know if the problem is in the "Trigger and Gate"?

I attach what I've done...and hope you can help me...

0 Kudos
Message 9 of 9
(3,582 Views)