Home AMX Forum AMXForums Archive Threads AMX Applications and Solutions
Options

Countup timer

A client has asked for a timer to show how long he has been recording for on a DVD.
I'm assuming a timeline is the correct way to go, starting when the record button is pressed and killing the timeline when the stop button is pressed.
I'm new to timelines and was wondering if anyone has done this sort of thing and has any tips.
thanks in advance

Barry

Comments

  • kbeattyAMXkbeattyAMX Junior Member
    You could use timeline_set or timeline_get (1/100 sec) or the older get_timer and set_timer (1/10 Sec). If you use the older set_timer. there is less coding involved and its already an existing background timer. No timelines would need to be created.
  • VLCNCRZRVLCNCRZR Senior member
    Presenter Timer

    Here is a little subroutine that I use for a certain client who wants each
    presenter to progressively know how long they have been speaking.

    Maybe you can modify it to fit your need.


    //PRESENTER TIMER FUNCTION
    {
    TIMER_DISPLAY = (GET_TIMER /600)
    WAIT(600)
    SEND_COMMAND TP,"'^TXT-9,1&2,',ITOA(TIMER_DISPLAY)"
    }
    PUSH[TP,10] //RESET TIMER
    {
    SET_TIMER (0)
    SEND_COMMAND TP,"'^TXT-9,1&2,','0'"
    TO[TP,BUTTON.INPUT.CHANNEL]
    }
  • jjamesjjames AMX Sustaining Engineer
    What's all this GET_TIMER, SET_TIMER stuff? Is this new?!?
  • VLCNCRZRVLCNCRZR Senior member
    These are old AXCESS keywords that I couldnt bear to part with.

    Easy and accurate!
  • kbeattyAMXkbeattyAMX Junior Member
    You could find the commands in NS2 under Help NS Keywords,
  • jjamesjjames AMX Sustaining Engineer
    VLCNCRZR wrote: »
    These are old AXCESS keywords that I couldnt bear to part with.

    Ahh - the reason why I never heard of them - I've never programmed AXCESS!

    Just looked them up though . . . they look interesting.
  • jbhildijbhildi Junior Member
    thanks

    Hi all,

    thanks for that.
    Must admit I'd forgotten about get_timer etc. Years since I used them.

    Barry
  • DHawthorneDHawthorne Junior Member
    jjames wrote: »
    What's all this GET_TIMER, SET_TIMER stuff? Is this new?!?

    Quite old, actually. I've never used them, though our old Axcent programmer used them a lot, so I gained familiarity when I took over his code. The one problem is that it is a single global timer; you can't have multiple timers going with those keywords. Or, let me amend that, you can't that I am aware of :).

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file