Hi, I was searching in this forum, but I haven´t found an answer for this situation. I have this VI
Basically im reading Temperature values each 10 ms from the marked subVI, and what i want to do is to read all of the data and store it in an array, but I dont want the array to be generated at the end of the loop, I want it to be a dynamic array, so I can acces to all the data that has been generated in each iteration.
You started doing something with build array in the lower part of your code, so you are almost there. Still, you are using way too much code as well as questionable code.
I would not initialize the min and max shift registers with 0 and 100, resp. What if all temperature values are negative? What if all are >100? Use +inf and -inf instead to guarantee that the code works universally.
You don't really need the "temperatura actual" indicator. you could just show the digital display of the chart.
Since you are building an array without any upper limit, you will eventually run out of memory. How long should the VI run?
Here's an example how things could be simplified. No case structures, no comparisons, no birds nest of wires.
Make sure you study it well and completely understand everything. If this is a school project, you need to be able to fully explain the purpose of every single wire and function.