How can I know which screen is displayed on my LCD?

134 views
asked Aug 29, 2017 in System Integration by Rachip team
Hello,

I am working on integrating the EmWiz screens onto my platform.

While working I am facing a problem with the way parameters are monitored on the sceen.

I was under the impression that when the screen is presented over the LCD the SW would require the parameters needed for the current screen.

However, I do not find a way to indicate which screen is monitored currently or better to invoke a task to read the needed parameters per specific screen. This leaves me with an unacceptable solution to read on refresh all parameters of the system monitored on any screen whatsoever.

So, what would be the indication for the screen currently monitored?

Is there an indication when there is a screen chasge, for the purpose of new parameters read?

Waiting for your answer,
Thanks,
R- Team

1 Answer

0 votes
answered Aug 29, 2017 by Paul Banach
Hi,

This depends on how you manage your screens and exchange data with your system. If you create the screens dynamically just in the moment the screen is displayed and then you remove the screen again when it is hidden, then the screens will be automatically released if not used anymore.

If the screen triggers the data exchange, after it has been released no data is exchanged anymore.

In turn, if you maintain all screens in memory whole the time and you scroll them for example, then you should track the transitions between the screens. When the user scrolls from screen 1 to 2, just inform screen 1 that it is not the active one and inform screen 2 that it has become active. Accordingly the screens can start/stop exchanging the data.

Hope it helps you.

Best regards

Paul Banach

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...