cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW simple pendulum simulation

GerdW
Knight of NI

Re: LabVIEW simple pendulum simulation

Hi JT,

 

it's nice you attached a VI.

But many of us (including me) wil/can not install the latest LabVIEW version (22Q3) due to licensing issues.

To get help you should (always) downconvert the VI before posting: File->Save for previous…

(For several reasons I prefer LV2019.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
JT1122
Member

Re: LabVIEW simple pendulum simulation

Message contains an attachment

GerdW so sorry will upload the correct one now 

Re: LabVIEW simple pendulum simulation

Hello, I'm currently also working on this project but I'm struggling to implement damping. Do I need to use a shift register or a case structure? If I do need to use a shift register, how do I add it to a while loop if there is no input of the count terminal? My damped waveform chart is not showing any changes. Does anyone have any tips that can help me? 

Bob_Schor
Knight of NI

Re: LabVIEW simple pendulum simulation

Hello, Jeyden.  I just downloaded and ran your program, which gave me two pictures, one of which seemed to show a graph of a pendulum, swinging from its initial position to the left, then to the right, then to the left, ..;, along with a chart that shows a sinusoidal oscillation of "something".

 

Interesting that both the Chart and the Graph have the X axis labeled as "Time", and the Y axis labeled as "Amplitude", which is definitely not the case (the Graph, for example, doesn't explicitly show Time, but rather seems to show a "movie" of the Pendulum, its "anchor", and the connection between the bottom and top of the Pendulum, i.e. Anchor + wire + "Weight at end of wire".

 

Has anyone discussed the Three Rules of Data Flow (programming)?  If nothing happens when you run your program, ask yourself what should happen the first time the program runs its first loop.

 

Here's something you should try --

  1. Go to the Block Diagram.
  2. Click on the Light Bulb on the top bar.  This turns on "Highlight Execution".
  3. Click the Run Arrow (the first icon on the top bar -- sorry, I don't remember the proper name, so I'm calling it "top bar").
  4. Your program should start running, and you should see values moving along the wire.  Are they mostly 0?  If so, why?  Remember the Three Laws of Data Flow.

Bob Schor