Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

could not get a continous change in the ouput

Dear ,
 
Iam feeding  a analouge signal into the DAQ system and then trying to measure it using LABVIEW. My analouge signal has a regular peaks , and I want to measure that peaks for a period of time . For this initially Iam using  THRESHOLD PEAK DETECTOR, and I fed the output count of this   threshold peak detector to a Numeric Indicator in a LABVIEW. Iam also monitoring the out put wave from the DAQ  device on a WAVE FORM GRAPH INDICATOR . The Problem is the Numeric Indicator is giving me a count that is present at that particular frame only. I mean if the peak detector is encountered with 2 valid peaks,(there will be  2 peaks fit in the graph indicator) , numeric indicator is displaying as 2 . If only 1 valid peak is enountered  , the numeric indicator is displaying as 1. So as a whole it is fluctuating between either 1 or 2 ( based on the number of valid peaks that are encountered.). But I need a continous change in the numeric indicator that must add all the values. Suppose for example if threshold peak detectror first encounters 2 valid peaks , then 2 must be displayed on ther numeric indicator. And for the next second   if it  encounters , say for example 3 valid peaks , now my indicator has to show me 2+3=5 . And for the next time if peak detectors encounters 1 valid peak , my numeric indicator has to show me now 2+3+1=6. and so on.
 
 Now I tried this with keeping a numeric constant (with 0 value) outside the while loop and connected it to loop. and then replaced with shift register at the other end of the loop. In between the loop I fed the the numeric constant to one of the inputs of  ADD  function, and, the output count of the threshold peak detector to the other input of this ADD function and the out put is fed to shift register. Now At last , out side the loop, I fed the oput put of shift register to the numeric indicator. But this not continously changing. whcih I need to have.
 
I am hereby attaching my block diagram , please see it and help me .
 
thanks ,
 
regards
KIRAN
 
 
0 Kudos
Message 1 of 2
(2,579 Views)
You can't read the shift register value because you have the indicator outside the loop. anothing outside the loop will not be updated until the loop finishes.
0 Kudos
Message 2 of 2
(2,576 Views)