Line chart is not drawing the line... sometimes

Hello, all. I'm completely a beginner of node-red. I'm using it in a IoT2040. I'm readind data from some drivers and it's working fine. What happens is that the line chart sometimes is displaying the data recieved but suddenly goes to zero, despite that the data seems ok.


The title is displaying the payload ok, but the line stills in zero... Also the time line have date a bit strange... Probably is something stupid but I can't fin it. Any help will be apreciated.

King Regards

if in doubt - add a debug node wired to the same pace as the chart node - set it to view complete msg. and inspect the data coming in to see what is causing the strangeness.

Thank you very much for your answer, dceejay. I did it and seems ok... If I reebot the system works fine for some hours, but then becames random... Drawing and not drawing...
Here screen shoot of debug node. Seems ok. I will try to catch it when is in error... but the payload in the title always is ok but isn't in the chart and is the same data.

Ok, now is happening again. Data recieved is correct, ic correctly displayed in title but line is in zero.
We can see in the chart the change in the line behaviour that I said before: sometimes ok others not.

Unfortunately you have covered up the scale on the chart so we can't see where it should be plotting.

Edit

What do you mean, a bit strange?

Another Edit: Can you start node red in a terminal and copy/paste the startup log from the terminal here please. That is the log that starts with the Welcome to node red message.

Hello, Colin. I don't notice it. Here the chart again... The data should be in the green line more on less all the time but never should go to 0 cause the driver is has been running always and the title data is OK. What I mean with strange is that the time in the chart only is correct at the end, the times displayed before the end of the chart is "after" than the end (I have the UTC option selected in the chart) but have no sense for me.

And here the log from the terminal:

root@iot2000:/usr/lib/node/node-red# node red
17 Jul 07:15:27 - [info]

Welcome to Node-RED

17 Jul 07:15:27 - [info] Node-RED version: v0.20.7
17 Jul 07:15:27 - [info] Node.js version: v8.16.0
17 Jul 07:15:27 - [info] Linux 4.4.185-cip35 ia32 LE
17 Jul 07:15:51 - [info] Loading palette nodes
17 Jul 07:16:08 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
17 Jul 07:16:08 - [warn] rpi-gpio : Cannot find Pi RPi.GPIO python library
17 Jul 07:17:25 - [info] Dashboard version 2.22.1 started at /ui
17 Jul 07:17:35 - [info] Settings file : /home/root/.node-red/settings.js
17 Jul 07:17:35 - [info] Context store : 'default' [module=memory]
17 Jul 07:17:35 - [info] User directory : /home/root/.node-red
17 Jul 07:17:35 - [warn] Projects disabled : editorTheme.projects.enabled=false
17 Jul 07:17:35 - [info] Flows file : /home/root/.node-red/flows_iot2000.json
17 Jul 07:17:37 - [info] Server now running at http://127.0.0.1:1880/
17 Jul 07:17:37 - [warn]


Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.

17 Jul 07:17:39 - [info] Starting flows
17 Jul 07:18:07 - [info] Started flows

I still can't see the y axis scale on the chart.
What is drawing the green line, I only see one input to the chart?
Can you show some debug from when the chart is working correctly please.

I notice you are using an old version of node-red, is there a reason for that? Though I would have thought it unlikely that this is caused by that. You also are not using the latest dashboard so it might be worth upgrading that.

Edit, also when you say the time is correct at the end of the chart are you sure it is not the others that are right and the one at the end is wrong? Since you are using UTC mode the times should be UTC not local time. I am seeing that so I think there is a bug there.

Further edit, I have submitted a bug for the timestamp problem

Hello, Collin. Sorry again and thank you for your time. I drawed the green line with an editor to explain where the data should be. Here the chart with scale and with the problem again. This happens in all line charts that I'm using, same problem at same time. The version is provided by the image that Siemens supplies for this equipment, I can try to update it, the same for the dashboard.

Related with the time I think that is correct on the right side, is what the system retrieves (both screenshots taken at 'same time').

image

Here de debug node and the chart with the data going ok, after reboot the system:
image

And thank you again for the help!

What is your local timezone and what was the local time when you ran that date command on the device?

Are you running the browser on a PC or on the device running node-red?
If on a PC what timezone is it set to? The local/UTC correction is done in the browser I believe.

What is your local timezone and what was the local time when you ran that date command on the device? <-- UTC +1 (spain), now UTC+2 for summer season

Are you running the browser on a PC or on the device running node-red? <-- On the PC, I linking to IP of the IoT2040 device.

If on a PC what timezone is it set to? The local/UTC correction is done in the browser I believe. <-- The PC and the IoT2040 are displaying the same date and time. This means that PC is applying the UTC correction and the IoT2040 not... so this means that the UTC is not ok in the IoT. I need to define it properly and then apply a time zone correction.

I will try it and gives feedback.

Thank you!!!

You won't need to apply a correction. Make sure the UTC time is correct in the IoT then in the chart node remove the As UTC selection and the timestamps should be correct in the chart.

Now the chart hh:mm are ok!!! :grinning: Let's see what happens with the line if still going to 0 or not.
Thank you very much, Collin!!

I would not expect that change to have fixed the 0 data. At the moment I have no explanation for that.

If it still fails export a section of the flow, preferably from the input node that gets the value from wherever it gets it to the chart node and paste it here. Use the </> button when pasting it in. I have an idea about what the problem might possibly be.

[{"id":"d93b1c8d.3496d","type":"tab","label":"Indicators","disabled":false,"info":""},{"id":"790ae261.b7f9fc","type":"link in","z":"d93b1c8d.3496d","name":"","links":["e6f60885.19a3b8"],"x":145,"y":160,"wires":[["b29868ea.622c48","7d2c2c0e.4df5f4","4ffb29ae.1bc1a8","e95c45b4.0ce508"]]},{"id":"b29868ea.622c48","type":"function","z":"d93b1c8d.3496d","name":"Load Data 2","func":"    if (msg.payload==2){\n        node.status({fill:\"green\",shape:\"dot\",text:\"New data recived\"}); \n        msg.payload=global.get(\"DriverDataArray[2]\");\n        return msg\n    }\n    else{\n        node.status({fill:\"grey\",shape:\"dot\",text:\"Waiting for new data\"});     \n    }\n    \n    ","outputs":1,"noerr":0,"x":320,"y":420,"wires":[["85897037.e7633"]]},{"id":"ce7754ea.033cf8","type":"ui_chart","z":"d93b1c8d.3496d","name":"","group":"c0a191ac.3404a","order":1,"width":14,"height":7,"label":"Freq Act: {{payload|number:1}} Hz","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"linear","nodata":"No data","dot":false,"ymin":"0.0","ymax":"60.0","removeOlder":"2","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":660,"y":320,"wires":[[]]},{"id":"c622b3b3.8fb13","type":"ui_chart","z":"d93b1c8d.3496d","name":"","group":"c0a191ac.3404a","order":2,"width":14,"height":7,"label":"Current Act: {{payload|number:1}} A","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"linear","nodata":"No data","dot":false,"ymin":"0.0","ymax":"30.0","removeOlder":"2","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":660,"y":400,"wires":[[]]},{"id":"d587722d.f748a","type":"ui_gauge","z":"d93b1c8d.3496d","name":"","group":"c0a191ac.3404a","order":3,"width":7,"height":6,"gtype":"gage","title":"Torque","label":"%","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"60","seg2":"80","x":660,"y":480,"wires":[]},{"id":"7d2c2c0e.4df5f4","type":"function","z":"d93b1c8d.3496d","name":"Load Data 3","func":"    if (msg.payload==3){\n        node.status({fill:\"green\",shape:\"dot\",text:\"New data recived\"}); \n        msg.payload=global.get(\"DriverDataArray[3]\");\n        return msg\n    }\n    else{\n        node.status({fill:\"grey\",shape:\"dot\",text:\"Waiting for new data\"});     \n    }\n    \n    ","outputs":1,"noerr":0,"x":320,"y":680,"wires":[["4848cedb.e42cc"]]},{"id":"bd7814dc.77cee8","type":"ui_chart","z":"d93b1c8d.3496d","name":"","group":"488b8ddc.b25ea4","order":1,"width":14,"height":7,"label":"Freq Act: {{payload|number:1}} Hz","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"linear","nodata":"No data","dot":false,"ymin":"0.0","ymax":"60.0","removeOlder":"2","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":660,"y":580,"wires":[[]]},{"id":"3610101.32b21f","type":"ui_chart","z":"d93b1c8d.3496d","name":"","group":"488b8ddc.b25ea4","order":2,"width":14,"height":7,"label":"Current Act: {{payload|number:1}} A","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"linear","nodata":"No data","dot":false,"ymin":"0.0","ymax":"30.0","removeOlder":"2","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":660,"y":660,"wires":[[]]},{"id":"3cde1fab.4cd1c","type":"ui_gauge","z":"d93b1c8d.3496d","name":"","group":"488b8ddc.b25ea4","order":3,"width":7,"height":6,"gtype":"gage","title":"Torque","label":"%","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"60","seg2":"80","x":660,"y":740,"wires":[]},{"id":"4ffb29ae.1bc1a8","type":"function","z":"d93b1c8d.3496d","name":"Load Data 4","func":"    if (msg.payload==4){\n        node.status({fill:\"green\",shape:\"dot\",text:\"New data recived\"}); \n        msg.payload=global.get(\"DriverDataArray[4]\");\n        return msg\n    }\n    else{\n        node.status({fill:\"grey\",shape:\"dot\",text:\"Waiting for new data\"});     \n    }\n    \n    ","outputs":1,"noerr":0,"x":320,"y":940,"wires":[["b791caf4.e89408"]]},{"id":"e04b5c9.d0968a","type":"ui_chart","z":"d93b1c8d.3496d","name":"","group":"bfe29d17.91d49","order":1,"width":14,"height":7,"label":"Freq Act: {{payload|number:1}} Hz","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"linear","nodata":"No data","dot":false,"ymin":"0.0","ymax":"60.0","removeOlder":"2","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":660,"y":840,"wires":[[]]},{"id":"59e8b7bc.b3d3a8","type":"ui_chart","z":"d93b1c8d.3496d","name":"","group":"bfe29d17.91d49","order":2,"width":14,"height":7,"label":"Current Act: {{payload|number:1}} A","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"linear","nodata":"No data","dot":false,"ymin":"0.0","ymax":"30.0","removeOlder":"2","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":660,"y":920,"wires":[[]]},{"id":"2841d069.8757f","type":"ui_gauge","z":"d93b1c8d.3496d","name":"","group":"bfe29d17.91d49","order":3,"width":7,"height":6,"gtype":"gage","title":"Torque","label":"%","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"60","seg2":"80","x":660,"y":1000,"wires":[]},{"id":"e95c45b4.0ce508","type":"ui_template","z":"d93b1c8d.3496d","group":"473b457c.48d7dc","name":"Clock Toolbar","order":2,"width":"0","height":"0","format":"<script id=\"titleScript\" type=\"text/javascript\">\n\n$(function() {\n    if($('.md-toolbar-tools').length != 0){\n        loadClock();\n    }else setTimeout(loadClock, 500)\n});\n\nfunction loadClock(){\n    $('#clock').remove();\n    var toolbar = $('.md-toolbar-tools');\n    \n    var div = $('<div/>');\n    var p = $('<p/ id=\"clock\">');\n    \n    div.append(p);\n    div[0].style.margin = '5px 5px 5px auto';\n    toolbar.append(div);\n\n    function displayTitle(lh) {\n        p.text(lh); \n    }\n    \n    function upTime() {\n        var d = new Date();\n        p.text(d.toLocaleString());\n    }\n\n    if(document.clockInterval){ \n            clearInterval(document.clockInterval);\n            document.clockInterval = null;\n    }\n        \n    document.clockInterval = setInterval(upTime,1000);\n}\n\n</script>","storeOutMessages":false,"fwdInMessages":false,"resendOnRefresh":false,"templateScope":"global","x":340,"y":60,"wires":[[]]},{"id":"85897037.e7633","type":"function","z":"d93b1c8d.3496d","name":"Split Data","func":"if (typeof msg.payload==='undefined'){\n   node.status({fill:\"red\",shape:\"ring\",text:\"No valid data\"}); \n}\nelse{\nmsg0={payload: msg.payload[0]/10}; // Freq Out (Hz)\nmsg1={payload: msg.payload[1]}; // Output Voltage (V)\nmsg2={payload: msg.payload[2]/10}; // Output Current (A)\n\nif (msg.payload[3]>32767){\n    msg3={payload: (msg.payload[3]-65536)/10};}\nelse{\n    msg3={payload: msg.payload[3]/10};}// Drive Load (%)\n    \nif (msg.payload[4]>32767){\n    msg4={payload: (msg.payload[4]-65536)/10};}\nelse{\n    msg4={payload: msg.payload[4]/10};}// Load Torque (%)\n\nmsg5={payload: msg.payload[5]/10}; // Driver Temp (ºC)\n\n\n\nnode.status({fill:\"green\",shape:\"dot\",text:\"Done\"})\n\n\nreturn [msg0,msg1,msg2,msg3,msg4,msg5];\n}\n","outputs":6,"noerr":0,"x":470,"y":420,"wires":[["ce7754ea.033cf8","e27e8536.2f0e08"],[],["c622b3b3.8fb13"],[],["d587722d.f748a"],[]]},{"id":"4848cedb.e42cc","type":"function","z":"d93b1c8d.3496d","name":"Split Data","func":"if (typeof msg.payload==='undefined'){\n   node.status({fill:\"red\",shape:\"ring\",text:\"No valid data\"}); \n}\nelse{\nmsg0={payload: msg.payload[0]/10}; // Freq Out (Hz)\nmsg1={payload: msg.payload[1]}; // Output Voltage (V)\nmsg2={payload: msg.payload[2]/10}; // Output Current (A)\n\nif (msg.payload[3]>32767){\n    msg3={payload: (msg.payload[3]-65536)/10};}\nelse{\n    msg3={payload: msg.payload[3]/10};}// Drive Load (%)\n    \nif (msg.payload[4]>32767){\n    msg4={payload: (msg.payload[4]-65536)/10};}\nelse{\n    msg4={payload: msg.payload[4]/10};}// Load Torque (%)\n\nmsg5={payload: msg.payload[5]/10}; // Driver Temp (ºC)\n\n\n\nnode.status({fill:\"green\",shape:\"dot\",text:\"Done\"})\n\n\nreturn [msg0,msg1,msg2,msg3,msg4,msg5];\n}\n","outputs":6,"noerr":0,"x":470,"y":680,"wires":[["bd7814dc.77cee8"],[],["3610101.32b21f"],[],["3cde1fab.4cd1c"],[]]},{"id":"b791caf4.e89408","type":"function","z":"d93b1c8d.3496d","name":"Split Data","func":"if (typeof msg.payload==='undefined'){\n   node.status({fill:\"red\",shape:\"ring\",text:\"No valid data\"}); \n}\nelse{\nmsg0={payload: msg.payload[0]/10}; // Freq Out (Hz)\nmsg1={payload: msg.payload[1]}; // Output Voltage (V)\nmsg2={payload: msg.payload[2]/10}; // Output Current (A)\n\nif (msg.payload[3]>32767){\n    msg3={payload: (msg.payload[3]-65536)/10};}\nelse{\n    msg3={payload: msg.payload[3]/10};}// Drive Load (%)\n    \nif (msg.payload[4]>32767){\n    msg4={payload: (msg.payload[4]-65536)/10};}\nelse{\n    msg4={payload: msg.payload[4]/10};}// Load Torque (%)\n\nmsg5={payload: msg.payload[5]/10}; // Driver Temp (ºC)\n\n\n\nnode.status({fill:\"green\",shape:\"dot\",text:\"Done\"})\n\n\nreturn [msg0,msg1,msg2,msg3,msg4,msg5];\n}\n","outputs":6,"noerr":0,"x":470,"y":940,"wires":[["e04b5c9.d0968a"],[],["59e8b7bc.b3d3a8"],[],["2841d069.8757f"],[]]},{"id":"128169bf.1f5506","type":"link in","z":"d93b1c8d.3496d","name":"","links":["ca652f7a.a4a4e"],"x":115,"y":1060,"wires":[["5f47050f.e7186c","cea4bf06.f745c","16c0d22.1e93c2e"]]},{"id":"5f47050f.e7186c","type":"function","z":"d93b1c8d.3496d","name":"Status Driver 2","func":"if(msg.input.queueUnitId==2){\n     node.status({fill:\"green\",shape:\"dot\",text:\"New data recived\"}); \n     return msg\n }\nelse{\n        node.status({fill:\"grey\",shape:\"dot\",text:\"Waiting for new data\"});     \n    }\n","outputs":1,"noerr":0,"x":300,"y":1310,"wires":[["10efec0d.9467e4"]]},{"id":"cea4bf06.f745c","type":"function","z":"d93b1c8d.3496d","name":"Status Driver 3","func":"if(msg.input.queueUnitId==3){\n     node.status({fill:\"green\",shape:\"dot\",text:\"New data recived\"}); \n     return msg\n }\nelse{\n        node.status({fill:\"grey\",shape:\"dot\",text:\"Waiting for new data\"});     \n    }\n","outputs":1,"noerr":0,"x":300,"y":1560,"wires":[["6f7fa751.f2e638"]]},{"id":"16c0d22.1e93c2e","type":"function","z":"d93b1c8d.3496d","name":"Status Driver 4","func":"if(msg.input.queueUnitId==4){\n     node.status({fill:\"green\",shape:\"dot\",text:\"New data recived\"}); \n     return msg\n }\nelse{\n        node.status({fill:\"grey\",shape:\"dot\",text:\"Waiting for new data\"});     \n    }\n","outputs":1,"noerr":0,"x":300,"y":1810,"wires":[["fba4906.1c5b67"]]},{"id":"10efec0d.9467e4","type":"function","z":"d93b1c8d.3496d","name":"Status Data","func":"const Topics = [\"SLC(Run)\",\"SLF(Ref)\",\"FWD Run\",\"Running\",\"FEXT2\",\"Accel\",\"Decel\",\"At Speed\",\n  \"Alt Ramp\",\"SL Override\",\"Remote\",\"Current Limit\",\"DCI\",\"Jogging\",\"Zero Speed\",\"Drive Fault\"\n  ]\n// build array of 16 messages, function must have 16 outputs\nmessages = Topics.map( getMsg )\nreturn messages\n\nfunction getMsg(topic, index) {\n    return {topic: topic, payload: (msg.payload >> index) & 1, id: msg.input.queueUnitId, color: (((msg.payload >> index) & 1)==1)?\"yellow\":\"grey\"}\n}","outputs":16,"noerr":0,"x":470,"y":1310,"wires":[[],[],[],["bb5f64ce.41b098"],[],[],[],["748a1fbf.00faf"],[],[],[],["b4dc34f6.5d74a8"],[],[],["9b7374b6.af0c78"],["5cbd82e6.c8ed1c"]]},{"id":"bb5f64ce.41b098","type":"ui_text","z":"d93b1c8d.3496d","group":"c0a191ac.3404a","order":11,"width":"3","height":1,"name":"LED Indicator","label":"{{msg.topic}}","format":"<font color={{msg.color}} ><i class=\"fa fa-circle\" style=\"font-size:24px;\"></i></font>","layout":"col-center","x":660,"y":1210,"wires":[]},{"id":"748a1fbf.00faf","type":"ui_text","z":"d93b1c8d.3496d","group":"c0a191ac.3404a","order":11,"width":"3","height":1,"name":"LED Indicator","label":"{{msg.topic}}","format":"<font color={{msg.color}} ><i class=\"fa fa-circle\" style=\"font-size:24px;\"></i></font>","layout":"col-center","x":660,"y":1260,"wires":[]},{"id":"b4dc34f6.5d74a8","type":"ui_text","z":"d93b1c8d.3496d","group":"c0a191ac.3404a","order":11,"width":"3","height":1,"name":"LED Indicator","label":"{{msg.topic}}","format":"<font color={{msg.color}} ><i class=\"fa fa-circle\" style=\"font-size:24px;\"></i></font>","layout":"col-center","x":660,"y":1310,"wires":[]},{"id":"9b7374b6.af0c78","type":"ui_text","z":"d93b1c8d.3496d","group":"c0a191ac.3404a","order":11,"width":"3","height":1,"name":"LED Indicator","label":"{{msg.topic}}","format":"<font color={{msg.color}} ><i class=\"fa fa-circle\" style=\"font-size:24px;\"></i></font>","layout":"col-center","x":660,"y":1360,"wires":[]},{"id":"5cbd82e6.c8ed1c","type":"ui_text","z":"d93b1c8d.3496d","group":"c0a191ac.3404a","order":11,"width":"3","height":1,"name":"LED Error","label":"{{msg.topic}}","format":"<font color={{msg.color}} ><i class=\"fa fa-exclamation-triangle\" style=\"font-size:24px;\"></i></font>","layout":"col-center","x":640,"y":1410,"wires":[]},{"id":"6f7fa751.f2e638","type":"function","z":"d93b1c8d.3496d","name":"Status Data","func":"const Topics = [\"SLC(Run)\",\"SLF(Ref)\",\"FWD Run\",\"Running\",\"FEXT2\",\"Accel\",\"Decel\",\"At Speed\",\n  \"Alt Ramp\",\"SL Override\",\"Remote\",\"Current Limit\",\"DCI\",\"Jogging\",\"Zero Speed\",\"Drive Fault\"\n  ]\n// build array of 16 messages, function must have 16 outputs\nmessages = Topics.map( getMsg )\nreturn messages\n\nfunction getMsg(topic, index) {\n    return {topic: topic, payload: (msg.payload >> index) & 1, id: msg.input.queueUnitId, color: (((msg.payload >> index) & 1)==1)?\"yellow\":\"grey\"}\n}","outputs":16,"noerr":0,"x":470,"y":1560,"wires":[[],[],[],["3e67c61.4499d3a"],[],[],[],["dee44f65.1c5fe"],[],[],[],["acd61ae3.fbb888"],[],[],["888b27f5.ea0b58"],["9301016f.255be"]]},{"id":"3e67c61.4499d3a","type":"ui_text","z":"d93b1c8d.3496d","group":"488b8ddc.b25ea4","order":11,"width":"3","height":1,"name":"LED Indicator","label":"{{msg.topic}}","format":"<font color={{msg.color}} ><i class=\"fa fa-circle\" style=\"font-size:24px;\"></i></font>","layout":"col-center","x":660,"y":1460,"wires":[]},{"id":"dee44f65.1c5fe","type":"ui_text","z":"d93b1c8d.3496d","group":"488b8ddc.b25ea4","order":11,"width":"3","height":1,"name":"LED Indicator","label":"{{msg.topic}}","format":"<font color={{msg.color}} ><i class=\"fa fa-circle\" style=\"font-size:24px;\"></i></font>","layout":"col-center","x":660,"y":1510,"wires":[]},{"id":"acd61ae3.fbb888","type":"ui_text","z":"d93b1c8d.3496d","group":"488b8ddc.b25ea4","order":11,"width":"3","height":1,"name":"LED Indicator","label":"{{msg.topic}}","format":"<font color={{msg.color}} ><i class=\"fa fa-circle\" style=\"font-size:24px;\"></i></font>","layout":"col-center","x":660,"y":1560,"wires":[]},{"id":"888b27f5.ea0b58","type":"ui_text","z":"d93b1c8d.3496d","group":"488b8ddc.b25ea4","order":11,"width":"3","height":1,"name":"LED Indicator","label":"{{msg.topic}}","format":"<font color={{msg.color}} ><i class=\"fa fa-circle\" style=\"font-size:24px;\"></i></font>","layout":"col-center","x":660,"y":1610,"wires":[]},{"id":"9301016f.255be","type":"ui_text","z":"d93b1c8d.3496d","group":"488b8ddc.b25ea4","order":11,"width":"3","height":1,"name":"LED Error","label":"{{msg.topic}}","format":"<font color={{msg.color}} ><i class=\"fa fa-exclamation-triangle\" style=\"font-size:24px;\"></i></font>","layout":"col-center","x":640,"y":1660,"wires":[]},{"id":"fba4906.1c5b67","type":"function","z":"d93b1c8d.3496d","name":"Status Data","func":"const Topics = [\"SLC(Run)\",\"SLF(Ref)\",\"FWD Run\",\"Running\",\"FEXT2\",\"Accel\",\"Decel\",\"At Speed\",\n  \"Alt Ramp\",\"SL Override\",\"Remote\",\"Current Limit\",\"DCI\",\"Jogging\",\"Zero Speed\",\"Drive Fault\"\n  ]\n// build array of 16 messages, function must have 16 outputs\nmessages = Topics.map( getMsg )\nreturn messages\n\nfunction getMsg(topic, index) {\n    return {topic: topic, payload: (msg.payload >> index) & 1, id: msg.input.queueUnitId, color: (((msg.payload >> index) & 1)==1)?\"yellow\":\"grey\"}\n}","outputs":16,"noerr":0,"x":470,"y":1810,"wires":[[],[],[],["3b897c1.f30e684"],[],[],[],["36c75276.544e0e"],[],[],[],["ec629db2.4e22c"],[],[],["9bd35283.520d"],["af0f5fb1.ce479"]]},{"id":"3b897c1.f30e684","type":"ui_text","z":"d93b1c8d.3496d","group":"bfe29d17.91d49","order":11,"width":"3","height":1,"name":"LED Indicator","label":"{{msg.topic}}","format":"<font color={{msg.color}} ><i class=\"fa fa-circle\" style=\"font-size:24px;\"></i></font>","layout":"col-center","x":660,"y":1710,"wires":[]},{"id":"36c75276.544e0e","type":"ui_text","z":"d93b1c8d.3496d","group":"bfe29d17.91d49","order":11,"width":"3","height":1,"name":"LED Indicator","label":"{{msg.topic}}","format":"<font color={{msg.color}} ><i class=\"fa fa-circle\" style=\"font-size:24px;\"></i></font>","layout":"col-center","x":660,"y":1760,"wires":[]},{"id":"ec629db2.4e22c","type":"ui_text","z":"d93b1c8d.3496d","group":"bfe29d17.91d49","order":11,"width":"3","height":1,"name":"LED Indicator","label":"{{msg.topic}}","format":"<font color={{msg.color}} ><i class=\"fa fa-circle\" style=\"font-size:24px;\"></i></font>","layout":"col-center","x":660,"y":1810,"wires":[]},{"id":"9bd35283.520d","type":"ui_text","z":"d93b1c8d.3496d","group":"bfe29d17.91d49","order":11,"width":"3","height":1,"name":"LED Indicator","label":"{{msg.topic}}","format":"<font color={{msg.color}} ><i class=\"fa fa-circle\" style=\"font-size:24px;\"></i></font>","layout":"col-center","x":660,"y":1860,"wires":[]},{"id":"af0f5fb1.ce479","type":"ui_text","z":"d93b1c8d.3496d","group":"bfe29d17.91d49","order":11,"width":"3","height":1,"name":"LED Error","label":"{{msg.topic}}","format":"<font color={{msg.color}} ><i class=\"fa fa-exclamation-triangle\" style=\"font-size:24px;\"></i></font>","layout":"col-center","x":640,"y":1910,"wires":[]},{"id":"e27e8536.2f0e08","type":"debug","z":"d93b1c8d.3496d","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":850,"y":380,"wires":[]},{"id":"c0a191ac.3404a","type":"ui_group","z":"","name":"Data","tab":"708cf3e4.83ee4c","order":1,"disp":true,"width":"28","collapse":false},{"id":"488b8ddc.b25ea4","type":"ui_group","z":"","name":"Data","tab":"65d73be4.2bf2b4","order":1,"disp":true,"width":"28","collapse":false},{"id":"bfe29d17.91d49","type":"ui_group","z":"","name":"Data","tab":"8de0120c.06b4e","order":1,"disp":true,"width":"28","collapse":false},{"id":"473b457c.48d7dc","type":"ui_group","z":"","name":"hidden_group","tab":"49f962cf.1606dc","order":1,"disp":false,"width":"6","collapse":false},{"id":"708cf3e4.83ee4c","type":"ui_tab","z":"","name":"Driver2 M8: POLY 1","icon":"dashboard","order":3,"disabled":false,"hidden":false},{"id":"65d73be4.2bf2b4","type":"ui_tab","z":"","name":"Driver3 M8: POLY 2","icon":"dashboard","order":4,"disabled":false,"hidden":false},{"id":"8de0120c.06b4e","type":"ui_tab","z":"","name":"Driver4 M8: POLY 3","icon":"dashboard","order":5,"disabled":false,"hidden":false},{"id":"49f962cf.1606dc","type":"ui_tab","z":"","name":"Zooland Sys","icon":"home","order":1,"disabled":false,"hidden":false}]

Hello, Colin. Here the simplified code. As you comment the hh:mm are now ok, but still going to 0. If you have an idea about the problem is fantastic!!! I pick the data from the driver trough modbus connection, then I save it in an array and then I going to pass this data to the charts. Here I'm readind the data of the drivers, from address 2 to 4. Of course if you need more info I will be happy to share with you. Thank you.

That suggests it is not the problem I had considered, which was that the data getting to the chart was being corrupted somehow due to overwriting a message after it has been sent. But since you create new messages each time in the Split Data function it isn't that. I think I have run out of ideas.
@dceejay I don't know whether you have any ideas here, basically the chart node is sometimes drawing lines at zero when a debug node shows that valid data are going in. I have a vague recollection of something similar previously but can't find it.

Thanks, Colin, for all your help. I'm very grateful to you. I'll run some more tests and if I find a solution, I'll post it.

I catched this array from line chart output, in the array appears and X and Y value, the Y value have sense, at less is what the chart is plotting but the X value seems to high for only 440 points... Is this value expected in the normal behaviour of a line chart?

[{"x":1595404552557,"y":0},{"x":1595404568598,"y":0},{"x":1595404584639,"y":0},{"x":1595404600690,"y":0},{"x":1595404616741,"y":0},{"x":1595404632782,"y":0},{"x":1595404648842,"y":0},{"x":1595404664883,"y":0},{"x":1595404680944,"y":0},{"x":1595404696985,"y":0},{"x":1595404713026,"y":0},{"x":1595404729076,"y":0},{"x":1595404745127,"y":0},{"x":1595404761178,"y":0},{"x":1595404777231,"y":0},{"x":1595404793259,"y":0},{"x":1595404809314,"y":0},{"x":1595404825341,"y":0},{"x":1595404841395,"y":0},{"x":1595404857432,"y":0},{"x":1595404873473,"y":0},{"x":1595404889514,"y":0},{"x":1595404905554,"y":0},{"x":1595404921605,"y":0},{"x":1595404937648,"y":0},{"x":1595404953687,"y":0},{"x":1595404969729,"y":0},{"x":1595404985778,"y":0},{"x":1595405001821,"y":0},{"x":1595405017860,"y":0},{"x":1595405033901,"y":0},{"x":1595405049942,"y":0},{"x":1595405065983,"y":0},{"x":1595405082023,"y":0},{"x":1595405098064,"y":0},{"x":1595405114105,"y":0},{"x":1595405130155,"y":0},{"x":1595405146206,"y":0},{"x":1595405162257,"y":0},{"x":1595405178298,"y":0},{"x":1595405194339,"y":0},{"x":1595405210379,"y":0},{"x":1595405226420,"y":0},{"x":1595405242461,"y":0},{"x":1595405258501,"y":0},{"x":1595405274543,"y":0},{"x":1595405290583,"y":0},{"x":1595405306624,"y":0},{"x":1595405322675,"y":0},{"x":1595405338716,"y":0},{"x":1595405354756,"y":0},{"x":1595405370797,"y":0},{"x":1595405386848,"y":0},{"x":1595405402890,"y":0},{"x":1595405418929,"y":0},{"x":1595405434970,"y":0},{"x":1595405451011,"y":0},{"x":1595405467042,"y":0},{"x":1595405483092,"y":0},{"x":1595405499143,"y":0},{"x":1595405515184,"y":0},{"x":1595405531225,"y":0},{"x":1595405547276,"y":0},{"x":1595405563317,"y":0},{"x":1595405579357,"y":0},{"x":1595405595398,"y":0},{"x":1595405611439,"y":0},{"x":1595405627480,"y":0},{"x":1595405643531,"y":0},{"x":1595405659571,"y":0},{"x":1595405675612,"y":0},{"x":1595405691652,"y":0},{"x":1595405707693,"y":0},{"x":1595405723734,"y":0},{"x":1595405739786,"y":0},{"x":1595405755826,"y":0},{"x":1595405771867,"y":0},{"x":1595405787928,"y":0},{"x":1595405803969,"y":0},{"x":1595405820019,"y":0},{"x":1595405836060,"y":0},{"x":1595405852100,"y":0},{"x":1595405868142,"y":0},{"x":1595405884182,"y":0},{"x":1595405900223,"y":0},{"x":1595405916284,"y":0},{"x":1595405932325,"y":0},{"x":1595405948365,"y":0},{"x":1595405964406,"y":0},{"x":1595405980457,"y":0},{"x":1595405996508,"y":0},{"x":1595406012562,"y":0},{"x":1595406028589,"y":0},{"x":1595406044643,"y":0},{"x":1595406060681,"y":0},{"x":1595406076736,"y":0},{"x":1595406092762,"y":0},{"x":1595406108804,"y":0},{"x":1595406124844,"y":0},{"x":1595406140895,"y":0},{"x":1595406156936,"y":0},{"x":1595406172976,"y":0},{"x":1595406189017,"y":0},{"x":1595406205058,"y":0},{"x":1595406221099,"y":0},{"x":1595406237139,"y":0},{"x":1595406253190,"y":0},{"x":1595406269231,"y":0},{"x":1595406285262,"y":0},{"x":1595406301313,"y":0},{"x":1595406317353,"y":0},{"x":1595406333395,"y":0},{"x":1595406349435,"y":0},{"x":1595406365487,"y":0},{"x":1595406381547,"y":0},{"x":1595406397588,"y":0},{"x":1595406413628,"y":0},{"x":1595406429670,"y":0},{"x":1595406445729,"y":0},{"x":1595406461772,"y":0},{"x":1595406477811,"y":0},{"x":1595406493852,"y":0},{"x":1595406509892,"y":0},{"x":1595406525944,"y":0},{"x":1595406541984,"y":0},{"x":1595406558025,"y":0},{"x":1595406574066,"y":0},{"x":1595406590129,"y":0},{"x":1595406606157,"y":0},{"x":1595406622198,"y":0},{"x":1595406638239,"y":0},{"x":1595406654280,"y":0},{"x":1595406670320,"y":0},{"x":1595406686371,"y":0},{"x":1595406702412,"y":0},{"x":1595406718452,"y":0},{"x":1595406734494,"y":0},{"x":1595406750562,"y":0},{"x":1595406766598,"y":0},{"x":1595406782638,"y":0},{"x":1595406798667,"y":0},{"x":1595406814707,"y":0},{"x":1595406830748,"y":0},{"x":1595406848338,"y":38.6},{"x":1595406864155,"y":31.3},{"x":1595406880215,"y":31.4},{"x":1595406896254,"y":31.2},{"x":1595406912317,"y":31.2},{"x":1595406928355,"y":31.4},{"x":1595406944408,"y":31.1},{"x":1595406960511,"y":31.4},{"x":1595406976540,"y":33.4},{"x":1595406992601,"y":31.4},{"x":1595407008748,"y":31.3},{"x":1595407024789,"y":31.3},{"x":1595407040841,"y":31.4},{"x":1595407056892,"y":23.1},{"x":1595407072943,"y":31.4},{"x":1595407089004,"y":31.4},{"x":1595407105055,"y":31.4},{"x":1595407121119,"y":28.2},{"x":1595407137146,"y":31.3},{"x":1595407153211,"y":31.2},{"x":1595407169248,"y":31.4},{"x":1595407185311,"y":31.2},{"x":1595407201338,"y":31.3},{"x":1595407217389,"y":31.2},{"x":1595407233439,"y":31.2},{"x":1595407249480,"y":31.2},{"x":1595407265521,"y":31.2},{"x":1595407281572,"y":31.3},{"x":1595407297622,"y":31.2},{"x":1595407313663,"y":38.6},{"x":1595407329704,"y":31.1},{"x":1595407345754,"y":31.3},{"x":1595407361796,"y":31.2},{"x":1595407377846,"y":31.3},{"x":1595407393886,"y":31.3},{"x":1595407409938,"y":31.3},{"x":1595407425978,"y":28.2},{"x":1595407442029,"y":31.3},{"x":1595407458070,"y":31.4},{"x":1595407474120,"y":46.7},{"x":1595407490161,"y":31.4},{"x":1595407506202,"y":31.1},{"x":1595407522362,"y":23},{"x":1595407538293,"y":31.3},{"x":1595407554334,"y":31.3},{"x":1595407570385,"y":31.4},{"x":1595407586426,"y":31.2},{"x":1595407602476,"y":31.3},{"x":1595407618517,"y":31.2},{"x":1595407634558,"y":31.3},{"x":1595407650618,"y":31.2},{"x":1595407666659,"y":31.4},{"x":1595407682710,"y":31.2},{"x":1595407698751,"y":31.2},{"x":1595407714792,"y":31.2},{"x":1595407730842,"y":31.2},{"x":1595407746883,"y":31.4},{"x":1595407762934,"y":31.2},{"x":1595407778975,"y":31.4},{"x":1595407795016,"y":31.3},{"x":1595407811057,"y":31.2},{"x":1595407827097,"y":31.4},{"x":1595407843138,"y":31.2},{"x":1595407859189,"y":31.4},{"x":1595407875230,"y":31.4},{"x":1595407891271,"y":28.2},{"x":1595407907321,"y":31.4},{"x":1595407923372,"y":31.4},{"x":1595407939413,"y":44.9},{"x":1595407955454,"y":31.3},{"x":1595407971504,"y":31.1},{"x":1595407987545,"y":31.2},{"x":1595408003596,"y":27.3},{"x":1595408019637,"y":31.2},{"x":1595408035677,"y":31.4},{"x":1595408051728,"y":31.2},{"x":1595408067769,"y":31.3},{"x":1595408083810,"y":28.2},{"x":1595408099882,"y":31.4},{"x":1595408115922,"y":31.2},{"x":1595408131962,"y":31.3},{"x":1595408148003,"y":31.1},{"x":1595408164053,"y":31.2},{"x":1595408180095,"y":31.4},{"x":1595408196155,"y":31.4},{"x":1595408212196,"y":31.3},{"x":1595408228237,"y":31.3},{"x":1595408244277,"y":31.3},{"x":1595408260328,"y":31.4},{"x":1595408276369,"y":31.2},{"x":1595408292410,"y":38.7},{"x":1595408308460,"y":31.2},{"x":1595408324502,"y":31.3},{"x":1595408340542,"y":31.2},{"x":1595408356593,"y":31.1},{"x":1595408372624,"y":31.3},{"x":1595408388674,"y":23},{"x":1595408404716,"y":31.3},{"x":1595408420874,"y":38.7},{"x":1595408436797,"y":0},{"x":1595408452847,"y":0},{"x":1595408468889,"y":0},{"x":1595408484929,"y":0},{"x":1595408500970,"y":0},{"x":1595408517011,"y":0},{"x":1595408533051,"y":0},{"x":1595408549102,"y":0},{"x":1595408565143,"y":0},{"x":1595408581184,"y":0},{"x":1595408597234,"y":0},{"x":1595408613275,"y":0},{"x":1595408629316,"y":0},{"x":1595408645357,"y":0},{"x":1595408661398,"y":0},{"x":1595408677448,"y":0},{"x":1595408693489,"y":0},{"x":1595408709540,"y":0},{"x":1595408725581,"y":0},{"x":1595408741621,"y":0},{"x":1595408757672,"y":0},{"x":1595408773723,"y":0},{"x":1595408789764,"y":0},{"x":1595408805818,"y":0},{"x":1595408821845,"y":0},{"x":1595408837910,"y":0},{"x":1595408853937,"y":0},{"x":1595408869992,"y":0},{"x":1595408886028,"y":0},{"x":1595408902083,"y":0},{"x":1595408918110,"y":0},{"x":1595408934151,"y":0},{"x":1595408950192,"y":0},{"x":1595408966246,"y":0},{"x":1595408982273,"y":0},{"x":1595408998315,"y":0},{"x":1595409014364,"y":0},{"x":1595409030405,"y":0},{"x":1595409046447,"y":0},{"x":1595409062487,"y":0},{"x":1595409078538,"y":0},{"x":1595409094579,"y":0},{"x":1595409110619,"y":0},{"x":1595409126660,"y":0},{"x":1595409142711,"y":0},{"x":1595409158752,"y":0},{"x":1595409174792,"y":0},{"x":1595409190833,"y":0},{"x":1595409206874,"y":0},{"x":1595409222915,"y":0},{"x":1595409238956,"y":0},{"x":1595409254997,"y":0},{"x":1595409271057,"y":0},{"x":1595409287098,"y":0},{"x":1595409303139,"y":0},{"x":1595409319190,"y":0},{"x":1595409335230,"y":0},{"x":1595409351271,"y":0},{"x":1595409367312,"y":0},{"x":1595409383353,"y":0},{"x":1595409399393,"y":0},{"x":1595409415434,"y":0},{"x":1595409431475,"y":0},{"x":1595409447516,"y":0},{"x":1595409463557,"y":0},{"x":1595409479608,"y":0},{"x":1595409495648,"y":0},{"x":1595409511689,"y":0},{"x":1595409527740,"y":0},{"x":1595409543780,"y":0},{"x":1595409559822,"y":0},{"x":1595409575862,"y":0},{"x":1595409591903,"y":0},{"x":1595409607944,"y":0},{"x":1595409623985,"y":0},{"x":1595409640035,"y":0},{"x":1595409656076,"y":0},{"x":1595409672117,"y":0},{"x":1595409688168,"y":0},{"x":1595409704219,"y":0},{"x":1595409720259,"y":0},{"x":1595409736300,"y":0},{"x":1595409752341,"y":0},{"x":1595409768382,"y":0},{"x":1595409784452,"y":0},{"x":1595409800493,"y":0},{"x":1595409816534,"y":0},{"x":1595409832574,"y":0},{"x":1595409848625,"y":0},{"x":1595409864666,"y":0},{"x":1595409880707,"y":0},{"x":1595409896748,"y":0},{"x":1595409912799,"y":0},{"x":1595409928839,"y":0},{"x":1595409944880,"y":0},{"x":1595409960921,"y":0},{"x":1595409976962,"y":0},{"x":1595409993002,"y":0},{"x":1595410009043,"y":0},{"x":1595410025084,"y":0},{"x":1595410041125,"y":0},{"x":1595410057166,"y":0},{"x":1595410073206,"y":0},{"x":1595410089247,"y":0},{"x":1595410105288,"y":0},{"x":1595410121328,"y":0},{"x":1595410137370,"y":0},{"x":1595410153410,"y":0},{"x":1595410169461,"y":0},{"x":1595410185512,"y":0},{"x":1595410201553,"y":0},{"x":1595410217594,"y":0},{"x":1595410233654,"y":0},{"x":1595410249695,"y":0},{"x":1595410265749,"y":0},{"x":1595410281777,"y":0},{"x":1595410297830,"y":0},{"x":1595410313869,"y":0},{"x":1595410329922,"y":0},{"x":1595410345950,"y":0},{"x":1595410362005,"y":0},{"x":1595410378041,"y":0},{"x":1595410394074,"y":0},{"x":1595410410112,"y":0},{"x":1595410426153,"y":0},{"x":1595410442205,"y":0},{"x":1595410458245,"y":0},{"x":1595410474286,"y":0},{"x":1595410490337,"y":0},{"x":1595410506378,"y":0},{"x":1595410522418,"y":0},{"x":1595410538459,"y":0},{"x":1595410554500,"y":0},{"x":1595410570550,"y":0},{"x":1595410586591,"y":0},{"x":1595410602632,"y":0},{"x":1595410618673,"y":0},{"x":1595410634713,"y":0},{"x":1595410650754,"y":0},{"x":1595410666805,"y":0},{"x":1595410682846,"y":0},{"x":1595410698887,"y":0},{"x":1595410714927,"y":0},{"x":1595410730988,"y":0},{"x":1595410747029,"y":0},{"x":1595410763070,"y":0},{"x":1595410779111,"y":0},{"x":1595410795180,"y":0},{"x":1595410811225,"y":0},{"x":1595410827265,"y":0},{"x":1595410843293,"y":0},{"x":1595410859344,"y":0},{"x":1595410907477,"y":0},{"x":1595410923518,"y":0},{"x":1595410939558,"y":0},{"x":1595410955599,"y":0},{"x":1595410971650,"y":0},{"x":1595410987690,"y":0},{"x":1595411003731,"y":0},{"x":1595411019782,"y":0},{"x":1595411035823,"y":0},{"x":1595411051863,"y":0},{"x":1595411067904,"y":0},{"x":1595411083946,"y":0},{"x":1595411099996,"y":0},{"x":1595411116037,"y":0},{"x":1595411132077,"y":0},{"x":1595411148128,"y":0},{"x":1595411164169,"y":0},{"x":1595411180210,"y":0},{"x":1595411196261,"y":0},{"x":1595411212301,"y":0},{"x":1595411228332,"y":0},{"x":1595411244383,"y":0},{"x":1595411260423,"y":0},{"x":1595411276466,"y":0},{"x":1595411292505,"y":0},{"x":1595411308600,"y":0},{"x":1595411324649,"y":0},{"x":1595411340689,"y":0},{"x":1595411356945,"y":0},{"x":1595411372991,"y":0},{"x":1595411389105,"y":0},{"x":1595411405142,"y":0},{"x":1595411421184,"y":0},{"x":1595411437248,"y":0},{"x":1595411453275,"y":0},{"x":1595411586298,"y":31.3},{"x":1595411602340,"y":31.3},{"x":1595411620928,"y":31.1},{"x":1595411636981,"y":31.4},{"x":1595411653032,"y":31.3},{"x":1595411669081,"y":31.3},{"x":1595411685131,"y":31.3},{"x":1595411701181,"y":31.3},{"x":1595411717247,"y":46.6},{"x":1595411734700,"y":31.3},{"x":1595411750775,"y":31.3}]