LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

signal integration problems

Hello:
 
I'm integrating an input signal with an Integral block. Testing with a constant, 1 for example, the result is completely wrong. It seems that the integrator is faster than real time. I divide the result by 3000 and the result is than acceptable.
Is there any relevant detail to know about that real-time integral block?
Attached is my VI for determining the average value of the input: integral/elapled_time.
 
Thank you
0 Kudos
Message 1 of 2
(2,546 Views)
Hi,
 
I'm not sure what the problem could be, but have you monitored the "i" in the loop and the size of the array to make sure that they are what you think they are?  I just ran a loop with the integrator and a 1 going into it, and it returned what it should.  Since that has got to be about the most basic component in your diagram, it seems more likely the bug is in the acquisition or loop timing.
 
Good luck,
Eric
 
0 Kudos
Message 2 of 2
(2,534 Views)