cancel
Showing results for 
Search instead for 
Did you mean: 

How to send data from touchGFX GUI to main task

PŚwie.1
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
5 REPLIES 5
Maurizio1
Associate III

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

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?

That's what I would do, yes.

There is a chapter on queues in the RTOS manual.

You may find this tutorial interesting:

How to update other tasks from the TouchGFX GUI

I was doing it with this tutorial before and wanted to return it, but I did second queue which return data :). Thank you so much for help