OK, I added two green buttons (change colors as you like!):
- One to get the front panel picture
- One to get a picture of the currently visible graph.
I did not really do anything to your data processing code, but there are probably improvements possible (I only did a LV2010 diagram cleanup). You should not run the loop as fast as possible, either add a small wait or simulate acquisition timing.
All property nodes belong in a separate loop with an event structure so they only execute when things change, and not with every iteration of the loop. (This small loop is currently in the upper left)
All your scales can be calculated from first principles, so you don't need all these diagram constants and case structures.
You should write to a local variable instead of a value property node.
See if it makes sense. Modify as needed. 😉