Announcement

Collapse
No announcement yet.

#platform "UOLED-96-G2" no longer supported?

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

  • #platform "UOLED-96-G2" no longer supported?

    In my (many years ago and until last year working) 4Dg file, I use a first command:

    #platform "UOLED-96-G2" When compiling I now get an error message which reads:

    Fatal error: Can't open 'E:\uOLED files\[email protected]': no such file or directory (line 1:...)

    What happened to the INC file, why does it now want a fnc file?

    Strange enough, the graphics generated by the compiling are in fact stored on the uSD card despite this fatal error message.

    thanks
    MadAl

  • #2
    Hi

    I've just started a new project for your display and the platfom is auto generated as,

    #platform "GOLDELOX"

    Could you please try this and let me know the result.

    Best regards

    Paul

    Comment


    • #3
      I got a the same error:

      Fatal error: Can't open 'E:\uOLED files\[email protected]' : : no such file or directory (line 1:...)

      Here is my code:

      #platform "GOLDELOX"
      // Form1 1.1 generated 12/01/2020 12:31:20
      media_SetAdd(iForm1H, iForm1L) ; // point to the Form1 image
      media_Image(0, 0) ; // show image

      // Program Skeleton 1.0 generated 29-12-2015 11:41:18

      #inherit "4DGL_16bitColours.fnc"

      #inherit "VisualConst.inc" #inherit "TriAntConst.inc" func main()

      var numx := 90 ;

      // Coolgauge1 1.0 generated 29/07/2018 19:36:38
      media_SetAdd(iCoolgauge1H, iCoolgauge1L) ; // point to the Coolgauge1 image
      media_VideoFrame(0, 0, numx) ; // where numx is 0 to 360 (for a displayed -1 to -1)

      // Image1 1.0 generated 29/07/2018 19:36:38
      media_SetAdd(iImage1H, iImage1L) ; // point to the Image1 image
      media_Image(0, 0) ; // show image
      repeat forever

      endfunc
      Last edited by MadAl; 1 February 2020, 03:12 PM.

      Comment


      • #4
        Hi,

        The media_SetAdd and media_Image should be inside the main function.

        Code:
        #platform "GOLDELOX"
        
        // Program Skeleton 1.0 generated 29-12-2015 11:41:18
        
        #inherit "4DGL_16bitColours.fnc"
        
        #inherit "VisualConst.inc"
        #inherit "TriAntConst.inc"
        
        func main()
        
        var numx;
        numx := 90 ;
        
        // Form1 1.1 generated 12/01/2020 12:31:20
        media_SetAdd(iForm1H, iForm1L) ; // point to the Form1 image
        media_Image(0, 0) ; // show image
        
        // Coolgauge1 1.0 generated 29/07/2018 19:36:38
        media_SetAdd(iCoolgauge1H, iCoolgauge1L) ; // point to the Coolgauge1 image
        media_VideoFrame(0, 0, numx) ; // where numx is 0 to 360 (for a displayed -1 to -1)
        
        // Image1 1.0 generated 29/07/2018 19:36:38
        media_SetAdd(iImage1H, iImage1L) ; // point to the Image1 image
        media_Image(0, 0) ; // show image
        
        repeat
        
        forever
        
        endfunc
        If you are using an older version of workshop, it might be best to download the latest the version

        https://4dsystems.com.au/workshop4#downloads

        Best regards

        Paul

        Comment


        • #5
          For some reason my code as posted above now compiles OK. This is a mystery to my as to why it does (I already had the latest workshop installed).
          Your code (saved in the very same directory) however gives the following errors:

          Error: 'iForm1H' not found (line 16 file:TriAnt.4Dg)
          Error: context error for unknown 'iForm1H' (line 16 file:TriAnt.4Dg)
          Error: 'iForm1L' not found (line 16 file:TriAnt.4Dg)
          Error: context error for unknown 'iForm1L' (line 16 file:TriAnt.4Dg)

          It would appear that every time I start 4D workshop I get different results and errors. No idea yet why.

          regards
          MadAl


          Comment


          • #6
            Hi,

            It's quite possible that iForm1 doesn't exist and is not in the TriAntConst.inc file.

            Pressing SHIFT & F9 will regenerate all the graphics files.

            You can also look at the TriAntConst.inc to see if is defined there. If you click on TriAntConst.inc in the code and then right click on it you will get a menu pop up. You can then click on 'Open file at Cursor' and you will be able to see if iForm1H and iForm1L are defined,

            Best regards

            Paul

            Comment

            Working...
            X