LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do hold the peak ponits or valley?

Solved!
Go to solution

Dear All,

I have a sampled wave, then I want detect the peak points (or valley points) and hold the point until next peak points (or valley points) appears.

Now I can use the example "Peak Detector.vi" to get the points I want.

But I don't know how to put the data to the graph. The attached picture shows the idea I want.

 

If you need more detail to solve my problem, plz tell me, thank you so much!!

 

 

 

 

 

0 Kudos
Message 1 of 8
(3,937 Views)

hello,

 

i have a doubt on what you want to do :

 

Are you trying to operate a smith trigger function and outing signal is binary ?

or level of peaks/valley are significants and you want to hold levels as a zero order blocker ?

 

best regards 

 

Tinnitus

 

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
Message 2 of 8
(3,907 Views)

Hi,

Thank you for your reply.

The input singal of DAQ is sampled from a analog singal. Not schmitt trigger.

 

Yes, I want to hold levels as a zero order blocker.

 

Do you have any suggest for me?

 

Thank you again.

 

0 Kudos
Message 3 of 8
(3,887 Views)

Hello,

 

i think there is a misunderstanding, i see that sampled signal is analog .

 

i would like to know if your green signal on graph has 2 levels , if so you,  the function you need is a smith trigger vi

 

Best regards

 

Tinnitus

 

 

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 4 of 8
(3,872 Views)
Solution
Accepted by topic author DexterHuang

hello,

 

here is one way 

 

detecting all pics index to build parts of array with each min/max value then assembling them

 

tell if it works

 

Regards

 

Tinnitus 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 5 of 8
(3,851 Views)
does it suit ?
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 6 of 8
(3,823 Views)

Sorry, this week I have some middle exam.

I will test the vi in tomorrow.

0 Kudos
Message 7 of 8
(3,813 Views)
thank you so much~
0 Kudos
Message 8 of 8
(3,781 Views)