Announcement

Collapse
No announcement yet.

Workshop4 IDE uLCD70D aspect ratio incorrect? IDE-preview good actual not?

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

  • Workshop4 IDE uLCD70D aspect ratio incorrect? IDE-preview good actual not?

    Hi there,

    Working with the displays i've purchased and learned a lot of the software/firmware to handle them.
    (Also found out that due to the missing SD card & one gen4-PA for the 7" uLCD display (has been reported to TME) that other SD cards will fail after 10min or so. (not as high class as the 4D-systems ones, (those are really good! and work flawless).

    Now I have come across a very strange thing which hopefully somebody can help me with.
    I've 3 displays, 2x uLCD-GEN4-4.3" && 1x uLCD-GEN4-7".
    In Workshop4 IDE for the 4.3" displays, the previews are almost exactly the same as visble on the actual display after programming.
    However, the 7" (landscape, upsidedown is used in IDE) looks good in the previews, but after programming the resolution aspect/ratio is not correct!?
    (A round gauge of 228x228px nicely on preview, but I measure on the actual display a difference of ~10% --> width = height * ~10%) -->
    Example the gauge of 228x228 is looking as a 251x228px gauge on the actual display? (Only the 7" uLCD-GEN4-70D seems to be affected, the 4.3" displays nice round gauges!)
    It appears all objects are affected by this. So I assume it must be an error in firmware / IDE.

    Please check and revert if possible, thank you in advance!

    Kind regards,
    Paul.
    Last edited by PSCD; 5 December 2019, 06:59 AM.

  • #2
    Hi Paul,

    As per the gen4-uLCD-70DT's datasheet(page 27), the Pixel Pitch is 0.1925 x 0.179mm(width x height in landscape mode), so it's non-square pixel because we have lower pixel density horizontally but higher vertically(height).

    Click image for larger version  Name:	pixel pitch 7 inch display.png.jpg Views:	0 Size:	14.1 KB ID:	70592

    To compensate for this, you would need to either elongate vertically or shrink horizontally your widgets. For example, when using a Coolgauge, you would need to set the EqualDimensions property of CoolGauge to "No".

    Click image for larger version  Name:	equaldimensions.png.jpg Views:	0 Size:	39.8 KB ID:	70591

    Say you want a 256x256 gauge, then (256 * 0.179) / 0.1925 = 238, so if you make the gauge 256 pixels in height and 238 pixels wide, it should look round.

    This also applies to backgrounds if you need to put image as your form background, that is to say you would need to manually resize your image using the formula above.

    Hope this helps. Should you have any other query, feel free to ask.

    Good luck and best regards,
    Sherwin
    Attached Files
    Last edited by sherwin4D; 5 December 2019, 12:19 PM.

    Comment


    • anzacinexile
      anzacinexile commented
      Editing a comment
      Hi
      I have a similar issue but I'm using AngularMeter's but I don't see a similar option for EaualDimentions with this gauge. I've tried setting height and width separately but the equal ratios remain. Any help and guidance very much appreciated.
      Thanks

  • #3
    Hi swerwin.
    Thank you for the quick clear reply!.

    Now it makes sense, that will definitely do the trick.

    Kind regards,
    Paul

    Comment


    • #4
      Hi
      I have a similar issue but I'm using AngularMeter's but I don't see a similar option for EaualDimentions with this gauge. I've tried setting height and width separately but the equal ratios remain. Any help and guidance very much appreciated.
      Thanks

      Comment


      • #5
        Hello,

        AngularMeter doesn't have this property, unfortunately. You might want to consider using other widgets, such as CoolGauge, UserImages, etc.

        Best regards,
        Sherwin
        Last edited by sherwin4D; 6 December 2019, 01:53 PM.

        Comment


        • #6
          Oh, that's a shame. Many thanks for the reply

          Comment


          • #7
            *** UPDATE ***
            Created a fill-in excel sheet, which transform all ratio's into the correct values to be put in the IDE. (Thanks for the info sherwin4D )!!!
            Examples included for uLCD 4.3" GEN4 && uLCD 7". (4.3" is square, 7" not, and must use altered values which are calculated by the sheet.)
            You can put other values in the blue marked items to calculate other displays!
            (Auto checks are performed is calc is good aswell as exceeding display dimensions).

            Additionally as I have 3 displays with 2 different sizes, it automatically calculates the width/height pixels (or mm) for both screens!.
            Enjoy!

            My gauges are now nice and round (except unfortunately the inner part of coolgauge...) but same physical dimensions (mm) on all screens!.
            Ps. don't forget to check the box: "equal dimensions off when using different values"

            Maybe 4D Systems can change the firmware or software for the 70D to do this automatically instead of this bit silly workaround (with not all widget properly modified for uneven scaling. Firmware/software edit would be: (extend all px in Y-axis *. 1.07575757575758 ratio). For 7" 70D / DT etc. displays. Fingers crossed this bug will be fixed. Atleast there is a work around.
            Uneven scaling within the software is the best to be prevented, in that way the user has the best experience (mainly because uneven scaling should be prevented for the widgets itself).
            ******************CALC widget size acc display.xlsx.xlsx excel file included

            Comment


            • #8
              Hi,

              Thank you for the excel file, a lot of users will find it very useful.

              I am glad to hear you got your gauges looking nice.

              The Pixel size of the 7" display isn't a 'bug', but a characteristic as stated in the pixel size of the datasheet. Workshop4 already works around the different pixel size by allowing users to create their own SD widgets and users can take into account the pixel size by sizing their own widgets accordingly to create a truly round shape. The UserImages and Userbuttons are the tools given so that users can add their own image sets to get the perfectly proprtioned widget look and there are many drawing / paint packages available to make this task easy..In addition, there are plenty of 4DGL commands to create a perfect circle if SD type graphics are not required for a project.

              Best regards

              Paul

              Comment

              Working...
              X