How to quickly fill a channel history values

Recommended Posts

Hi all,

Let say channel "data_points" to be filled with 50,000 history value. each value equal to its array element. 

For example, data_points[0] = 0, data_points[1] = 1....... and data_points[49999] = 49999 

If I make a for loop to ru 50,000 times will take a certain amount of time such as

for (private i = 0, i < 50000, i++

     data_point = i


Is there a quick function to perform beside using loop? data_points is a channel, not variable.


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.