I am new in LabVIEW and trying to implement my python-based code into the LabVIEW
The code is simple where I created an array of 1000 initialize zeros and later on for loop to store some data and once that data will cross the threshold level then reset the array,
here is part of python code,
You should learn about Autoindexing Tunnels on loops. They can build the array for you.
This code does not implement your threshold, but it should get you started.