LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Determine changes in a signal (peaks, valleys and 'flat' zones)

t06afre, You solution is not bad. See however my comments to Hillman. As for the programming side; I do admire the programmers but I believe that even they would like to have simpler, more intuitive tools to ease their life. That's why NI is continuously developing their software (well...besides the need to make money) to make life easier. While I like to program, I still have to reach my goals. As long as I can do this with less head ache and faster, I'm happy. In general the examples play for me the role of a picture: they worth a thousand words... Rather than reading a thousand words and getting stuck in programming, I would like to get to the point quick with an example (when possible). 

I do believe the more examples, the more LabView will be sold and liked/wanted by the users.

0 Kudos
Message 21 of 39
(1,604 Views)

This is not about programming but about methodology.

 

 How do you want to detect a peak? If your signal is noisy, you cannot use derivatives, or you have to filter data (with a gaussian filter or with a local mean of data), but this however will include a delay in the filtered data, as when the signal starts increasing the mean will be lower than the actual value. It will also flattent your peaks if they are really sharp.

 

So, here, you have to decide. How is your noise? If your noise as a defined max amplitude, you can use thresholds to detect when a signal starts increasing or lowering. If not, you'll need to filter the data and what could be a nice solution is to filter both predictable data and measured data, so the error introduced in filtering will be similar to the two graphs, fixing your timing issues.

 

Whatever solution you choose, you can then programm it on LabVIEW, but what you have to do first is take a piece of paper and a pencil and think about what is your problem and how you can resolve it.

 

Hope that helps

 

Oh, and, LabVIEW has no benefits in developping examples that will serve one single customer. If lot of people had the same issues, there will be an example. If you cannot solve your specific problem, then you need to pay for a developper ^^

Message Edited by Swieser on 12-16-2008 07:17 PM
0 Kudos
Message 22 of 39
(1,594 Views)

So Swieser...are you a developer?...

 

I appreciate everybody's enthusiasm to teach me what I should do.

0 Kudos
Message 23 of 39
(1,578 Views)
By the way do you have an example for the actual measured signal?  


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 24 of 39
(1,572 Views)

I just discovered that exactly those files are missing!

 

Nevertheless, I have attached the results of a different event just to exemplify the "noise" or rather variation in the signal.

0 Kudos
Message 25 of 39
(1,564 Views)
I added the prediction data for the sample file previously attached.
0 Kudos
Message 26 of 39
(1,556 Views)

Hillman,

 

we just installed the developer suite and I believe we now have the Advanced Signal Processing toolkit.

0 Kudos
Message 27 of 39
(1,555 Views)

I just noticed I have posted an incomplete acquired signal. I appologize if this created confusion... I hate to waste anybody's time.

 

---

 

I reviewed the project and I believe I can move forward with what I have. Therefore I would like to thank you once again for your time and suggestions.

 

---

 

Joyful Holidays and A Happy New Year to all forum users!

0 Kudos
Message 28 of 39
(1,543 Views)
Well this is a more real word signal. I had some problem finding the prediction data which row and col. shall I use. Perhaps you could use the sample.png as a template and roughly draw in what you want as output


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 29 of 39
(1,540 Views)

The file I sent you is not quite representative but this is all I have right now. I have modified the picture you sent me to show what I would want: for the hypotetical signal as the one in the attached picture I would like to separate the areas that have the peaks in a certain level of magnitude. I could do this using the prediction file by detecting the peaks within a certain range of magnitude; all I need are the time locations (in the sample picture that would be where the red line crosses the time axis)

 

In the sample file the columns to be read are the first one (time) and the AI column (column 35, Parameter 34).

0 Kudos
Message 30 of 39
(1,535 Views)