Skip to main content
PŚwie.1
Associate II
Jun 7, 2021 4:21 PM UTC
Solved

How to send data from touchGFX GUI to main task

Hello,

How can I send data from touchGFX screen to main task? I have action on click button which calculate me data, but I'm not sure how can I send calculated data to my main program.

    This topic has been closed for replies.
    Maurizio1
    Maurizio1Best answer
    Associate II
    Jun 10, 2021 8:21 PM UTC

    You may find this tutorial interesting:

    How to update other tasks from the TouchGFX GUI

    5 replies

    Maurizio1
    Associate II
    Jun 7, 2021 6:11 PM UTC

    How are you running TouchGFX? Are you using any OS? How did you create your multiple tasks?

    PŚwie.1
    PŚwie.1Author
    Associate II
    Jun 7, 2021 10:32 PM UTC

    I'm using FREERTOS CMSISv2 (auto generated program in designer for my stm). I have task where I send data via queue to Model in touchgfx. I have data in model and on my screen, but I want send them back to main core of application. I'm not sure how to do it. Should I make queue to main like I did queue to main or what?

    Maurizio1
    Associate II
    Jun 9, 2021 9:12 AM UTC

    That's what I would do, yes.

    There is a chapter on queues in the RTOS manual.