[{"id":"35096b3b.a84954","type":"inject","z":"dd2b1b78.857558","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":580,"y":400,"wires":[["71a5b799.900de8"]]},{"id":"b71d41f5.a5bf6","type":"debug","z":"dd2b1b78.857558","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":990,"y":400,"wires":[]},{"id":"71a5b799.900de8","type":"function","z":"dd2b1b78.857558","name":"remove null","func":"var data_ist = RED.util.cloneMessage(global.get(\"prozesstemp_global_object_3\").ist_verlauf[2]);\n//var data_ist_original = RED.util.cloneMessage(global.get(\"prozesstemp_global_object\").ist_verlauf[2]);\nvar msg2= {};\n\nfor (let i in data_ist){\n if (data_ist[i] === null){\n if (i >= 1){\n if (data_ist[i-1] !== null){\n var lower_value = data_ist[i-1];\n data_ist[i] = lower_value ;\n }\n \n }\n }\n}\n\n/*for (let i in data_ist_original){\n if (data_ist_original[i] === null){\n if (i >= 1){\n if (data_ist_original[i-1] !== null){\n lower_value = data_ist_original[i-1];\n data_ist_original[i] = lower_value ;\n }\n \n }\n }\n}*/\n\nmsg.payload = data_ist;\n//msg2.payload = data_ist_original;\nreturn [msg,msg2];","outputs":2,"noerr":0,"x":770,"y":400,"wires":[["b71d41f5.a5bf6"],["478a382a.0a8808"]]},{"id":"ff633fc3.02bc3","type":"debug","z":"dd2b1b78.857558","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":990,"y":340,"wires":[]},{"id":"717741a1.ff4d4","type":"function","z":"dd2b1b78.857558","name":"create object","func":"function getRandomInt(min, max) {\n min = Math.ceil(min);\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - min)) + min;\n}\n\nvar prozesstemp_global_object_3 = global.get(\"prozesstemp_global_object_3\")||{\n liste_maschinen_ID : [],\n timestamp_verlauf : [],\n soll_verlauf :[],\n max_verlauf :[],\n min_verlauf :[],\n ist_verlauf :[[],[],[]],\n timestamp_on:[],\n status: [],\n prozessnummer:[],\n filenames: [],\n};\n\nvar value_in = getRandomInt(0, 10);\n\nif (value_in <= 3){\n value_in = null;\n}\n\n\nvar ist_data = prozesstemp_global_object_3.ist_verlauf[2];\n\nist_data.push(value_in);\n\n if(ist_data.length >= 20){\n ist_data.pop();\n }\n \nprozesstemp_global_object_3.ist_verlauf[2] = ist_data;\n\nglobal.set(\"prozesstemp_global_object_3\",prozesstemp_global_object_3);\n\nmsg.payload = ist_data;\n\nreturn msg;","outputs":1,"noerr":0,"x":770,"y":340,"wires":[["ff633fc3.02bc3"]]},{"id":"206b9e82.73ef82","type":"inject","z":"dd2b1b78.857558","name":"","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":false,"onceDelay":0.1,"x":590,"y":340,"wires":[["717741a1.ff4d4"]]},{"id":"478a382a.0a8808","type":"debug","z":"dd2b1b78.857558","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":990,"y":440,"wires":[]}]
So I recreated the Situation but I work just fine with the new object. I don't know why...