LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Solving Differential Equation - getting strange results.

Hi, i am using LabView to model the mathematic pendulum which comes down to solving the quation numericaly:

 

109e82f8323742839deafdd776eaeec1.png

where w is constant and 0 is an angle between the pendulum's cord and the vertical which i want to plot against time. I built this very simple model to solve this equation (this is what our teacher showed us) [x is the angle]

 

Capture1.PNG

 

and this is what i get:

 

Capture2.PNG

 

"fi" is the starting angle. The result is a cosine , as it is to be expected, with the right period, but why the amplitude is so low? Am i missing something here? No matter how i change the initial value, the amplitude is always 5 oders of magnitude lower. It wouldnt be a problem, since what we are required is to solve the equation, but when i want to factor that in the equation above 0 should be sin0 , the problem arises - sinx for so low x , is...x. So my questions are:

 

- am i setting the initial conditions wrong?

- has the value of dt anything to do with it?

- is the method correct?

- am i clueless? 

 

A week ago i had no idea what LabView is. We were all thrown into the deep water, we were shown the method, but were not teached how the LabView works,so please, be kind.

Thank You in advance .

 

 

0 Kudos
Message 1 of 1
(2,243 Views)