LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple pendulum graph


@helloworld1111111 wrote:

I wired the empty array constant to the property node however, the code won't run because it states that the property node contains unwired or bad terminal. 


You again did not use "save for previous" and I cannot look at your code at the moment.

0 Kudos
Message 21 of 28
(324 Views)

sorry about that. I've attached it here 

0 Kudos
Message 22 of 28
(320 Views)

Your property node is not linked to the chart.

 

You either need to wire a reference of the chart to the upper input or right-click.. link it to the chart (see picture).

 

altenbach_0-1735839408319.png

 

 

 

Also:

  • Do NOT set the x and y scales to autoscale! Set the scales such as dx and dt have the same number of pixels. (else the pendulum distorts as a function of angle)
  • Do not reverse the x-axis of the chart.
  • never ever delete the label of a control (e.g. the stop button). If you don't want to see it on the front panel, change the visibility (right-click...visible items...label). An empty string is a very (very!!!!) poor label. On the diagram, the label should always show!
  • Don't make filenames that have multiple periods (pendulum..) or <space"." (FINAL .vi) before the extension.
  • Never ever call a file FINAL, because it never is! 😄
  • etc.

 

 

 

0 Kudos
Message 23 of 28
(312 Views)

@altenbach wrote:
  • Never ever call a file FINAL, because it never is! 😄

Many decades ago, a student from South America thought he had to do exactly one more experiment to complete the dissertation. The Nicolet 1280 computer to control the instrument only supported 6+3 filenames, so he named the result ULTIMO.000.

 

Suffice to say, a few weeks later he was up to ULTIMO.051 with more experiments to do 😄

0 Kudos
Message 24 of 28
(302 Views)

understood. thank you.

 

I understand that your vi is one way of implementing damping. but if someone wanted to implement damping using the below equation, how would it look like? (alpha being the damping coefficient)

0 Kudos
Message 25 of 28
(241 Views)

You can calculate t from the value of the iteration terminal and the loop rate. Together with alpha and the undamped amplitude, that is sufficient to solve your formula for the damped amplitude at any given elapsed time. Simple math!

 

 

0 Kudos
Message 26 of 28
(227 Views)

I tried doing this but it's not working and there is nothing showing up on the damped chart. Could it be a problem with the graph itself like its X and Y scale? I've attached an image of the block diagram here

0 Kudos
Message 27 of 28
(212 Views)

I cannot run or debug a picture.

 

I am also pretty sure that you should multiply i with a much smaller number than 1. Cosine takes radians and your steps are way too wide.

0 Kudos
Message 28 of 28
(190 Views)