Hello Poloni,
your read routine expects the last line of data without a CR/LF. If you have a CR/LF, then it reads another line - but this line is empty. So your last data will be all zero. This leads to the wrong display: display data=0 at time=0 (=01.01.1904).
So you have to check, if the last line is empty. If so delete the last data set.
Best regards,
GerdW
Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019