2020-08-25 03:29 AM
Hi all
Currently, I’m working with IDE TouchFGXDesigner in a STM32F469I DISCO module, this kind of system feature a Model View Presenter pattern and a RTOS, so, I’m trying to get some data from hardware (for instance a value in an ADC pin) in order to be processed into MVP model, to do that I’m using a task through RTOS that periodically read the data from hardware pin, my problem is how to carry out this data to the Model in this system. On one hand I have reach read the data in a task periodically in a thread running into the FreeRTOS and on the other hand the model has the data class prepared to be refresh from the task, but I don’t find the way to communicate both world. Waiting for your help.
Best Regards
Francisco García
2020-09-02 05:01 AM
Hi,
Have a look at the Backend communication article in the documentation. It describes two solutions of how to communicate between your HW peripherals and the Model class of your GUI. There are also some examples you can download to have a look at how it was implemented.
/Romain
2020-09-03 12:35 AM
Hi Romain
First thank you for your answer. I was reading it and was what I was looking for.
Regards
Francisco
2020-10-07 03:51 AM
Hi again
I finally get the result hoped, I'd like to share with everybody this link, it was very hep full for me, in that you can see easily the way to communicate using queue
Enjoy it:
https://www.youtube.com/watch?v=J6J8EUcw6qU&t=68s
Regards