LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with peak detector

I am acquiring a signal and as I visualize it I wish i can evaluate amplitude of peaks in my signal while i am acqiring it.
Is it possible to do that while my VI is processing?
When my VI runs i do not have any values out of the peak detector(i've set the threshold, the depth, the peaks mode and everything seems to be wired properly...).
Actualy it works well when I use 'peak detector' with a signal that i ve been recording before but it seems that i cant use 'peak detector' to make a monitoring of my signal(actually to measure amplitude of my peaks while I am acquiring my signal).
I am using LabVIEW, do you think that it would work with the real time module?
thanks for your help.
0 Kudos
Message 1 of 2
(2,624 Views)
The problem with your VI is that you are reading one scan at a time. This produces an array of one element which peak detector cannot use. Modify your code to read all the points at once from your DAQ card. Look in the example code if you need help.

Jeremy
0 Kudos
Message 2 of 2
(2,624 Views)