How to create an interface similar to oscilloscope
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-16 11:11 PM
I found the Graph in touchgfx-open-repository-master.How do you create a Graph that's constantly moving, so that it does what an oscilloscope does:grinning_face_with_sweat:
- Labels:
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-17 1:57 AM
Hi @lxw​ ,
Are you looking for how to receive data from the backend (hardware) to the UI or how to animate the graph?
/Anders
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-17 4:00 AM
Yes​,To achieve oscilloscope function,I wonder how to update and move graph in real time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-31 7:26 AM
If you mean scrolling the graph to the left and then updating the pixels on the right, then I have done something similar at a lower level.
What I did was shift the entire window to the left by one pixel i.e by manipulating the contents of the frame-buffer directly. I then added the new pixel to the right of the graph. Produced a nice scrolling effect, was smooth and did't need to erase the existing pixels as shifting the memory did that automatically. Could do multiple graphs as without addin extra overhead.
Toughgfx didn't have to know about it
Hope this helps
