Rafael,
I sat down and did some research and calculus and I believe that I have an answer fo you. This error happens because of the inaccuracies that are inherient to numerical integration. The first part of this is that the Express VI that you are using for Integration is actually using of left hand sum. This basically takes rectangles and uses this to calculate the area. When doing this calculation no boundary conditions are needed and the accuracy increases as the number of points rises. This would indicate that as the frequency increases, the number of points and sampling rate stay the same, this would mean that the slope increases. As the slope increases the rectangle approx. becomes worse and worse. This introduces error into the equation which propigates to the phase shift.

To improve this error I would recommend not using Express VIs. You can have the same implementation using regular VIs and functions, which I have attached above. This method gives you two advantages.
- This allows you to increase the number of samples and sampling rate. This will increase the accuracy of the model since by giving you more points (decreasing dt).
- The Integration VI allows you to input boundary conditions. This will increase the accuracy of the integration.
These two things (mostly #1) will give you a much reduced error in your phase. Please let me know if you have any other questions about this issue.
Thanks again and have a great day!
Andy F.
Message Edited by Andy F. on 05-05-2006 03:39 PM
-----------------------------------------------------------------
National Instruments