Announcement

Collapse
No announcement yet.

GEN4-ULCD-43DT Freezes

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

  • GEN4-ULCD-43DT Freezes

    Hi, I have a relatively simple program on the GEN4-ULCD-43DT that loops a number of videos (8 videos in different segments of the screen). Code is very simple:

    repeat
    // Top Center Gauge (359 frames)
    img_SetWord(hndl, iVideo1, IMAGE_INDEX, frame++) ; // where frame is 0 to 359
    img_Show(hndl,iVideo1) ;
    if(frame >= 358)
    frame := 0;
    endif

    // Top Middle Gauge (359 frames)
    img_SetWord(hndl, iVideo2, IMAGE_INDEX, frame2++) ; // where frame is 0 to 359
    img_Show(hndl,iVideo2) ;
    if(frame2 >= 358)
    frame2 := 0;
    endif

    // Top Bottom Gauge (359 frames)
    img_SetWord(hndl, iVideo3, IMAGE_INDEX, frame3++) ; // where frame is 0 to 359
    img_Show(hndl,iVideo3) ;
    if(frame3 >= 358)
    frame3 := 0;
    endif

    // Top Left Screen (359 frames)
    img_SetWord(hndl, iVideo4, IMAGE_INDEX, frame4++) ; // where frame is 0 to 359
    img_Show(hndl,iVideo4) ;
    if(frame4 >= 358)
    frame4 := 0;
    endif

    // Bottom Left Corner Screen (359 frames)
    img_SetWord(hndl, iVideo5, IMAGE_INDEX, frame5++) ; // where frame is 0 to 359
    img_Show(hndl,iVideo5) ;
    if(frame5 >= 358)
    frame5 := 0;
    endif

    // Top Left Middle Screen (359 frames)
    img_SetWord(hndl, iVideo6, IMAGE_INDEX, frame6++) ; // where frame is 0 to 359
    img_Show(hndl,iVideo6) ;
    if(frame6 >= 358)
    frame6 := 0;
    endif

    // Top Right Screen (359 frames)
    img_SetWord(hndl, iVideo7, IMAGE_INDEX, frame7++) ; // where frame is 0 to 359
    img_Show(hndl,iVideo7) ;
    if(frame7 >= 358)
    frame7 := 0;
    endif

    // Lower Right Screen (359 frames)
    img_SetWord(hndl, iVideo8, IMAGE_INDEX, frame8++) ; // where frame is 0 to 359
    img_Show(hndl,iVideo8) ;
    if(frame8 >= 358)
    frame8 := 0;
    endif
    forever
    The videos play fine for about 2.5 minutes, but then the display freezes. Seems to be midway through the 7th loop of the videos. Happens each time. Since this is such simple code, I'm having trouble imagining what could be going wrong.

    Any thoughts?

  • #2
    Hello,

    I would like to run some tests, could you please upload your project files(gifs or videos included) here or send via email if you deem it confidential: sherwin.macabio at 4dsystems dot com dot au

    Please use WS4 to archive, File > Zip Project

    Thank you and kind regards,
    Sherwin
    Last edited by sherwin4D; 7 March 2020, 03:19 PM.

    Comment


    • #3
      Thanks Sherwin, I e-mailed you a link to the zipped archive. Let me know what you find out!

      Comment


      • sherwin4D
        sherwin4D commented
        Editing a comment
        Hi Rob,

        Thank you for sending the project files.

        Okay, I will reply via email once I found the fix.

        Kind regards,
        Sherwin
    Working...
    X