User Tag List

Results 1 to 4 of 4

Thread: Pendulum Problem

  1. #1
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Pendulum Problem

    I am trying to create a physics lab using a simulated pendulum. The students will have to time the period of the pendulum and calcualte the acceleration of gravity using an equation. The only way I have found to time the period of the pendulum is with the Timer X extension. It allows me to set every so many ms using an expression which is calculated based on the length of the pendulum and the acceleration of gravity.

    Now the problem. I cannot seem to get enough precision in the setting of the period of the pendulum. Since I cannot set the Timer X object in fractions of a ms, the error in the round off is too large. The less round off error I have, the worse the simulation of the swinging pendulum looks.

    Anyone have any ideas, other extensions, some sneaky work around to solve this problem? Any help appreciated.

    The attached file is a rough first beta of the simualtion. The error is the difference between the time (ms) for each 6 degrees and the same as an integer. The simulation looks worse the more degrees are skipped between each drawing of the pendulum string and the movement of the bob (weight on the end of the string).

    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Jun 2006
    Location
    Melbourne, Australia
    Posts
    765
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pendulum Problem

    I have only had a quick look,

    I suggest not using the alway event in the pendulum simulator engine tied in with the event loop for a start. (Use the timer object instead) You need to use a real clock otherwise if your app pauses it looses time against the real clock.

    You may also you need to check for any program limits and assumptions. In particular division by zero issues and overflow when your simulation goes on for too long.


  3. #3
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pendulum Problem

    Thanks for the ideas Joewski. The always conditions don't really affect the time since they only draw in the string for the pendulum. The timing that is critical is the ball at the bottom of the string that is swinging back and forth. So far tests have not shown any change when the app is running for a very long time - the swing times remain constant, whether they are right or wrong.
    Steve

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,520
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Pendulum Problem

    You could also try enabling machine-independant speed.
    .:::.Joshtek.:::.

Similar Threads

  1. Pendulum
    By Captain_Harris in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 15th November 2011, 08:50 PM
  2. Pendulum
    By Almightyzentaco in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 15th February 2009, 05:31 PM
  3. Phyzix Object - Pendulum Example / Problem
    By drnebula in forum File Archive
    Replies: 0
    Last Post: 24th December 2007, 02:22 AM
  4. Phyzix Object - Pendulum Example / Problem
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 24th December 2007, 02:21 AM
  5. Pendulum Problem
    By drnebula in forum File Archive
    Replies: 0
    Last Post: 5th November 2006, 03:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •