This is the web version of EJS interface
EJS version 4.3.7
  1. Title=Ticker Tape Timer
  2. Author=Sze Yee
  3. Keywords=Ticker Tape Timer
  4. Level=Secondary, JC
  5. Abstract=engrg1@gmail.com
  6. CaptureTools=false
  7. DataTools=false
  8. LanguageTools=false
  9. EmersionSupport=false
  10. AppletColSupport=false
  11. UseMacMenuBar=false
  12. UseInterpreter=true
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension

    Init Page

    for (i=0;i<count;i++){ dot_no[i] = String.format("%d",i+1); }

    Evol Page

    FixRel Page

    for (i=0;i<count-1;i++) { if (dot_pos[i+1] > -1 ) { // the next dot is stamped dot_length[i] = dot_pos[i+1] - dot_pos[i]; dot_strpos[i] = dot_pos[i] + dot_length[i]/2; dot_str[i] = String.format("%.2f",-1*dot_length[i]); } } if (show >1 && userchoicelength == true) showlength=true; else showlength=false; if (dot_pos[selected]> 4.8) { _pause(); selected = show-1; }
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    double,double
    title="frame"
    layout=BORDER:0,0
    visible=true
    location="50,50"
    size="1000,300"
    position=center
    layout=VBOX
    layout=border
    borderType=TITLED
    borderTitle="Scenario 1"
    borderPosition=TOP
    borderJustification=CENTER
    position=north
    layout=HBOX
    background=192,255,0
    variable=initial_vel_ticker
    minimum=0
    maximum=50
    format="Initial Velocity : 0 m/s"
    ticks=6
    closest=true
    action=vel_ticker= initial_vel_ticker; for (i=0;i<show+1;i++){ dot_vel[i] = initial_vel_ticker; }
    size="250,50"
    variable=accln_temp
    value=0.0
    minimum=-100
    maximum=100
    format="Accleration : 0 m/s2"
    ticks=5
    closest=true
    action=accln_ticker=accln_temp; for (i=0;i<show+1;i++){ dot_accln[i] = accln_ticker; } if (accln_temp > 10) initial_vel_ticker = 0; else initial_vel_ticker = 20; vel_ticker= initial_vel_ticker; for (i=0;i<show+1;i++){ dot_vel[i] = initial_vel_ticker; }
    size="250,50"
    variable=vel_ticker
    format="Instantaneous Velocity = 0.00 m/s"
    editable=false
    background=WHITE
    foreground=BLACK
    font=Arial,BOLD,12
    position=center
    autoscaleX=false
    autoscaleY=false
    minimumX=-0.1
    maximumX=5
    minimumY=-2
    maximumY=2
    x=ticker_x
    y=0.3
    sizeX=5000
    sizeY=0.8
    style=RECTANGLE
    elementposition=NORTH_EAST
    fillColor=WHITE
    y=0
    inputX=dot_pos
    clearAtInput=true
    norepeat=true
    connected=false
    lineColor=RED
    lineWidth=5
    x=dot_pos
    y=-0.1
    sizeX=dot_length
    sizeY=0
    visible=showlength
    style=ARROW
    elementposition=SOUTH_WEST
    lineColor=BLUE
    lineWidth=1
    x=dot_pos
    y=-0.1
    sizeX=dot_length
    sizeY=0
    visible=showlength
    style=ARROW
    elementposition=NORTH_EAST
    lineColor=BLUE
    lineWidth=1
    x=dot_strpos
    y=-0.18
    pixelSize=true
    visible=showlength
    text=%dot_str%
    font=Arial,PLAIN,12
    elementposition=NORTH
    x=dot_pos
    y=0.05
    pixelSize=true
    text=%dot_no%
    font=Arial,PLAIN,12
    elementposition=SOUTH
    x=0
    y=stamp_y
    sizeX=0.1
    sizeY=1
    style=RECTANGLE
    elementposition=SOUTH
    position=north
    layout=HBOX
    background=LIGHTGRAY
    position=center
    layout=FLOW:center,0,0
    borderType=TITLED
    borderColor=BLACK
    borderTitle="Control"
    background=LIGHTGRAY
    layout=HBOX
    position=center
    text="Step"
    image="/org/opensourcephysics/resources/controls/images/stepforward.gif"
    action=_step()
    position=north
    variable=_isPaused
    textOn="Play"
    imageOn="/org/opensourcephysics/resources/controls/images/play.gif"
    actionOn=_play()
    textOff="Pause"
    imageOff="/org/opensourcephysics/resources/controls/images/pause.gif"
    actionOff=_pause()
    position=south
    text="reset"
    image="/org/opensourcephysics/resources/controls/images/reset.gif"
    action=_reset()
    layout=HBOX
    position=center
    variable=userchoicelength
    text="Show Distance"
    tooltip="Show distance between dot"
    variable=show_table
    text="Show Table"
    tooltip="Pause Sim when stamp"
    position=north
    variable=pause_sim
    text="Pause Sim"
    tooltip="Pause Sim when stamp"
    position=center
    layout=HBOX
    borderType=TITLED
    borderTitle="Time Info"
    borderPosition=TOP
    borderJustification=LEFT
    foreground=BLACK
    font=Arial,PLAIN,12
    variable=t
    format="Time= 0.000 s"
    editable=false
    background=WHITE
    font=Arial,BOLD,12
    tooltip="Time elapsed since the ticker tape time 'started'"
    position=center
    variable=tick
    format="Tick = 0.00 s"
    editable=false
    background="WHITE"
    font=Arial,BOLD,12
    tooltip="Time interval between 2 dots"
    position=east
    input=new double [] {show, t,vel_ticker, accln_ticker}
    active=show_time
    norepeat=true
    showRowNumber=false
    columnNames="No, No, t/s , v1/m/s, a1/m/s2"
    columnFormat="0,0, 0.00, 0.00, 0.00"
    visible=show_table
    size="250,300"