Announcement

Collapse
No announcement yet.

Clock

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ESPsupport
    replied


    Here's an example of a multiple timer.

    I've used private variables to make it look neater, might be able to make it neater again with a bit of work


    func timerlong()
    var private count, interval, trigger ;
    if (--count)
    sys_SetTimer(TIMER0, interval) ;
    else
    trigger := 1 ; // show timer has expired, could call another function
    endif
    endfunc


    func main()

    sys_SetTimerEvent(TIMER0, timerlong);
    print("Start..") ;
    timerlong.trigger := 0 ;
    timerlong.count := 5 ;
    timerlong.interval := 1000 ;
    sys_SetTimer(TIMER0, 1000) ; // start initial countdown
    sys_SetTimer(TIMER1, 10000) ; // test for 'accuracy'

    while(!timerlong.trigger) ;
    print(sys_GetTimer(TIMER1)) ; // see how close to 5000 is is
    print("..End") ;
    repeat // maybe replace
    forever // this as well

    endfunc

    Leave a comment:


  • ESPsupport
    replied


    The app notes pages should help, there's one specifically about strings http://www.4dsystems.com.au/appnotes/

    There's also heaps of samples that get installed with workshop, see files, samples, ....

    If you have a favourite search tool (say grep) you can navigate to the desired start folder and serach for the use of a particular function from there.

    Unfortunately the forum search isn't 'fantastic', but there's a lot of information to be found here, as well.

    There's no reason to feel foolish, everyone's a beginner once.

    Leave a comment:


  • CDE
    replied


    Can you help a little more and provide an example code of how you would make an RTC.

    What would the line code look like to have a timer repeat 5 times.

    sys_SetTimer(TIMER5,60000); // 1 Minute timer (Repeat 5 times)

    Can you tell me if there is somewhere on your website where I can find newer or more in-depth explanations of the coding. I feel a little foolish having to expose my inexperience in the forum area if something exists where I can find answers to my "VISI For Dummies" questions.

    I'm really struggling with strings.

    Better yet, I'm trying to sequence a string or user image file once a second. If you can tell me where to see a similar example or how to code it would be very helpful.

    Leave a comment:


  • ESPsupport
    replied


    Thanks, that was fixed back in 6.13 of the manual, released in June.

    Sorry about the confusion

    Leave a comment:


  • CDE
    replied


    Directly from 4D Labs manual pg 186. PICASO-GFX2 Internal 4DGL Functions.

    Example : sys_SetTimer(Timer5, 3600) // Set Timer5 for 1 hour. I must be it reading wrong.

    Although the Argument does say its in milliseconds.





    Dl7rrvvg/gKwooc3A+0D1AfpOq6+5zVfPXLMJ/iksQIAa3toM9Bb8Fy5CLKoej+P3vNPvadtzPX/efjU6+Gf2r11PwFYySU/JhQfou1gDVfe816uWlbr39knjRUAWNtD/wPx1ldLw6g8i5hc3tqMYkOvLtT60fmniuvI11DnIepG15pjc1wzOzej/NXW2LLROPfK83nOW+tDzRVyfei1a3IfOdeZ2FwfWkyvrKn99PJmuY9RfyHHNLVsL88o956tvkd6Y2pmy0LtZ6vNKAcAPEN8Dn3E/0AcA80fsPWDtOp9+DajNjN6bVvZt32Yj651Zu635mlWxI/aHM31iNpXb1x75890dLyPjnUr9xG9PFflnnVF/rvHCACf5qHNQF1g9xYIMyJPzZXPa307z0dWz7/ZaA5mnGlbY+s9b49r7ijPbXPdo3q5Rvm3xleNcjS5bi8268X2yo6MNfRyhFH5Ub08V+XOWs58XOHofALACh7+zkD9YA3x4Vo/aPMHcVbPZ0W+fPSM+vwm+frbdc7Ofa/tjIhtR9PyNC13Lb9ab9wz17I3vpkcZ5wZ795YwyjHVddxZtxbWtt2Te3fXJ6PKx3JG+N55DoB4N1d8mNCzbM+NI8uDq5eTLyDuki ZXdyER9pWz7rnrOMbX68A8K4e2gzMfmjf9eHeFrV1Qdr6++aFar7Grevszf1s257Ze9ly5+OdvPv4sk8a65Xuut6c9478APBJHv7 OQCwO8xHah2v9kD37oZtzZ7XfntbnVsyn2rr+vbnfarsnt23tW/483724plf2DLPjO+qKHNVdY62uzjubK19faOdNyzOTq9lqc2Y+9+oB4NNd+gvEoVd21ijXlX18qkfm/u62W7lm+7nTlWO4+3ruzF9zv8O9CWfGMXst73KNAPAuHvp/Bmbkr6r5IH5MzOWROTT31zGX89pcfdo89e7xp14LAN8hPoc+4v8ZmOHD9HVm5j6ebHvHyjx/57TnySfPVxv7N1wLAOx52mYAAAB4L7f/mBDXia9Umn8AgDXE2u9rfkwIAAB4LzYD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5E2j17rs909H1zv0fmP9u4hK7rkT4uOvkq f62tsr+2ZmJDLzuTttXlHMc78p0V7b1p7i/29+mxmAVFFnmiX8/Xy1P5mx5XjZsbci2l642zn9XFT8830V2OyiO/Vz+TpxTQRm+tz21q+lyfs5erFhRybRdyo7ogj/WU1bibP1dc2G7dlJseRmPi36bXJ9WEr75HYnto+5By9+qZ3Le28Pm5qvlzX9PqscTN5Zl3R30yOGb08zZF8OU9r1ysLe9cWatt2v pUnbOXq1cErfMX/M7C16N5rG2r7sFc2yjubo8oxrxZjzJuBI+JNzhvc+1nxvnz7B+7MPb1iDmb7We35BfAtPur/GTjj7kX20fzvtOhnHbFQawvDlXzrAvXI4vvROZhp/63zDMB1HvrOwDvqfdX/W5z5zkBeaFoYAAB8ho/4MaF3ZDNwvZmvXNtoAABcx2bgJJsBAAA+nc0A/9A2AwAAfL9nbAZe9gvEAADAa9kMAADAog7/mBAAAPAcd/+Y0KHNAAAA8D38mBAAACzKZgAAABZlMwAAAIuyGQAAgEXZDAAAwKJsBgAAYFE2AwAAsCibAQAAWJTNAAAALMpmAAAAFmUzAAAAi7 IZAACARdkMAADAomwGAABgUTYDAACwKJsBAABYlM0AAAAs6V/+5f8HcknCnYC9xsQAAAAASUVORK5CYII=" class="bbc_img" />

    Leave a comment:


  • ESPsupport
    replied


    Where did you see that in the manual?

    All the timers work in milliseconds.

    To get larger multiples simply have a secondary counter and restart the counter n times.

    Eg for your 300 seconds, run a 30 second timer (30000ms) to 0 10 times.

    Leave a comment:


  • CDE
    replied


    Can anyone tell me how to make a timer0 - timer7 work in seconds as described in the Internal 4DGL Functions. I need a timer that will go out to 300 seconds and the description in the guide says timers can be in milliseconds or seconds. So far, I haven't found how to make them is seconds.

    Leave a comment:


  • timdadd
    started a topic Clock

    Clock

    Hi all,

    Have modified the orbit demo to be a clock for those working with time as I couldn't see a code sample on the forum.

    The key bit of code is here:
    // calculate the new time, assume we get round in 32767 millisecs or 32.767 seconds!!!
    n := ot; ot:=sys_Get(TIMER) & 0x7FFF;
    if (n > ot) n := n - 32768;
    millisecs := millisecs + ot - n;
    // Have we got to a second?
    while (millisecs > 999)
    millisecs := millisecs - 1000;
    if (!(seconds := (++seconds % 60)))
    if (!(minutes := (++minutes % 60)))
    (!(hours := (++hours % 12)))
    endif
    endif
    wend

    Cheers,
    Tim


    Attached files clock.4dg (5.3 KB)
Working...
X