Pause / Unpause LINEGRAPHWIDGET #1670
-
I have a custom screen in Telemetry Viewer that has a LINEGRAPHWIDGET and it is working great. I would like to do two things, and I can not find even a starting point. Please, any help on how to accomplish the following would be greatly appreciated...
Clearly this can be done because Telemetry Grapher has a start / stop - pause / unpause functionality, I just can't figure out how to get this going on my Telemetry Viewer Screen. Thank you for pointers / starting places... Anything! Cheers. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I'll assume this is COSMOS 5. If you look at the Demo we create a BigWidget and HelloworldWidget (note the WIDGET BIG and WIDGET HELLOWORLD in the plugin.txt). So you should create your own new PausegraphWidget (similar to the demo) and add a button which can change the graph's |
Beta Was this translation helpful? Give feedback.
-
Our ButtonWidget just sets the text according to what was passed in. You'd need to do something like pass in an array of states that you could switch to if set or unset. |
Beta Was this translation helpful? Give feedback.
I'll assume this is COSMOS 5. If you look at the Demo we create a BigWidget and HelloworldWidget (note the WIDGET BIG and WIDGET HELLOWORLD in the plugin.txt). So you should create your own new PausegraphWidget (similar to the demo) and add a button which can change the graph's
state
variable topause
.