Display 180 degree rotation?

Hi,

in a HMI Synergy application built with e2studio and GUIX Studio, is it possible to rotate the screen of 180 degree? Have I to do some changes to the configuration.xml file in e2studio? Thank you.

  • Hello Laser,

    If your HMI application is using GUIX, you should be able to specify the screen rotation in degrees inside properties for sf_el_gx.

    Regards

  • In reply to Karol:

    Hi Karol,

    I tryied to change the "screen rotation angle" from 0 to 180, but now I can't see anything on the display, it is blank and seems to be not initialized. Is there something else I should configure?

  • In reply to Laser:

    Ok, I succeded in rotate the screen of 180 degree. I have to change also the "GUIX canvas buffer" from "not used" to "used".

    Now, the touch screen is obviously not rotated. Have I to modify the low level driver? Or is possible to change some parameters on the configuration.xml?

  • In reply to Laser:

    Ok, I succeded in rotate the screen of 180 degree. I have to change also the "GUIX canvas buffer" from "not used" to "used".

    Now, the touch screen is obviously not rotated. Have I to modify the low level driver? Or is possible to change some parameters on the configuration.xml?

  • In reply to Laser:

    Hello Laser,

    You do not need to modify the driver or the configuration. Since you need to use an intermediate thread to pass messages from touch framework to GUIX, you can manipulate the coordinates to implement the rotation, i.e.:

       .gx_event_payload.gx_event_pointdata.gx_point_x = (GX_VALUE) (800 - p_message->x),

       .gx_event_payload.gx_event_pointdata.gx_point_y = (GX_VALUE) (480 - p_message->y)

    Regards

  • In reply to Karol:

    Thanks, it works.

  • In reply to Laser:

    Hi. I just need to rotate some text by 90 degrees. Is that possible ?
  • In reply to Nick.P:

    Hi Nick,

    Starting from SSP 1.3.0, the GUIX provides gx_canvas_rotated_text_draw function.

    Regards,
    adboc