Announcement

Collapse
No announcement yet.

print error

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

  • print error

    Hi,
    I have a code to plot X vs Y values and I have some weird behaviour with the function print()
    See the following photo:

    Click image for larger version

Name:	labels.png
Views:	79
Size:	59.6 KB
ID:	77584

    As you can see, number 6, 24 and 30 look weird.

    All numbers from the x axis intervals are computed with a function called pixelToX(). This funcion returns a single number, in this case: 6, 12, 18, 24, 30
    then I do the followin:
    print(pixelToX(x));

    I'm pretty sure it is not caused by something I wrote previously because I'm not printing anything else in that position. Also because If I had writen anything in the same prosition, It would have been overprinted and not be visible.

    Thank you in advance.

    Oriol

  • #2
    Hi,

    What environment you are using and what display you are using?

    Best Regards

    Comment


    • #3
      Hi Ivan,

      I'm using a PixxiLCD-25P4-CTP coded with with ViSi Environment.

      Regards.

      Oriol

      Comment


      • #4
        Hi,

        Have you tried using the txt_MoveCursor(Line, Column) function to specify the location of the text? You can also try the gfx_MoveTo(xpos, ypos) to specify the location of the text before printing it on the screen. Also, I've checked the Internal Functions Manual of Pixxi display and, there is no pixelToX() even the IDE seems don't recognize this function.

        Best Regards

        Comment

        Working...
        X