i just realised that i sometimes really suck at programming. It took quite a bit of time for me to make a function to read these xml files where it should take only some minutes.
I will now focus on a algorithm that writes the signal, that could be used in the nano and in that program. Because i and im sure, others have this issue: If you set up the T/Div higher on a sq-wave signal, then there comes up another sq-wave form that should not be there, or even a straight line at Low or High of the actual sq-wave signal can be seen.
For example: The same issue with an analog oszi you would just geht a broad beam on the screen. This would tell you that you have wrong Time/Div. This might be a good thing to have implemented in the firmware.