NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
May 05, 2015, 03:10:45 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
"Progress, therfore, is not and accident,¡K" ..."Herbert Spencer(1820-1903, British philosopher)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: Another Cliper  (Read 8666 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3064



WWW
«
Embed this message
on: September 03, 2009, 06:30:55 pm » posted from:Taipei,T\'ai-pei,Taiwan

The following is a cliper simulation.
You can change the width of the blue object or the diameter of the green object
(click diameter to show the object and measure it's diameter).

Embed a running copy of this simulation

Embed a running copy link(show simulation in a popuped window)
Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
  • Please feel free to post your ideas about how to use the simulation for better teaching and learning.
  • Post questions to be asked to help students to think, to explore.
  • Upload worksheets as attached files to share with more users.
Let's work together. We can help more users understand physics conceptually and enjoy the fun of learning physics!


You may want to view the following video
http://www.youtube.com/watch?v=kTLhmptHAPc






* caliper2.gif (8.68 KB, 867x457 - viewed 242 times.)
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1747


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #1 on: September 04, 2009, 05:08:17 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

Hi Prof,

i been exploring the codes here for embedding the "blue object" into another vernier calipers applet.

i am puzzled how u make the blue object push the right internal jaw on both move together.

i can't locate the code for that "behavior".

chance to advise? thanks!

reference your codes under fixed constraints:
Code:
if(ox < oxmin+w/2)ox=oxmin+w/2;
else if(ox > x+w)ox=x+w;

if(oy>oymax)oy=oymax;


if(topone){
 if(x-x1>b)x=x1+b+0.2;
 px[2]=px[1]=x0+2*a+b;
 px[3]=px[4]=x0+a+b;
}

xdmin = ox+d+w/2;
if(oy > oymin && x < xdmin) x=xdmin;
if(x < x1)x=x1;
else if(x > x2)x = x2;



value=(x-x1)/ratio-0.05;





and the blue object has no code ON DRAG;

how is "the blue object push the right internal jaw on both move together" done?


*** There are 1 more attached files. You need to login to acces it!
« Last Edit: September 04, 2009, 05:13:15 pm by lookang » Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1747


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #2 on: September 04, 2009, 05:21:28 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

sorry i found it, no worries.

"if(oy > oymin && x < xdmin) x=xdmin;"

i will ask when need again.

quite a challenging task to do remixing alone. Grin
Logged
Pages: [1]   Go Up
  Print  
"Progress, therfore, is not and accident,¡K" ..."Herbert Spencer(1820-1903, British philosopher)"
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
vernier cliper (inch/mm mode, dial mode, measure inner/outer diameter and depth)
misc
Fu-Kwun Hwang 11 54546 Last post December 07, 2012, 10:49:32 pm
by Fu-Kwun Hwang
vernier cliper (inch/mm mode, dial mode, measure inner/outer diameter and depth)
misc
ahmedelshfie 1 4554 Last post April 19, 2010, 02:50:21 am
by ahmedelshfie
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.147 seconds with 22 queries.since 2011/06/15