03-12-2017 04:00 PM
Hello everyone,
I am receiving continuous set of data points (average and stand dev.) from the VI with time. Like as, when it is 1s, i get one data, when two second i get another data and it continues. So continuously i am having the last point data if I want to use it for other purposes. My issue: I want to use the previous point data and use that with the present data. Example: Equation: (Present point - previous point); But i don't have the previous data as i am having the last data continuously. How can i store the previous data continuously and use it with the present one? Like as whenever, my third point comes up, i want to use both the third point and second point.
Thanks,
Arnab
03-12-2017 04:55 PM
Feedback nodes or shift registers will hold the values from previous iterations.
03-12-2017 04:58 PM
Thanks. But how can i collect that previous iteration value and use it? Can you please give me an example?
03-12-2017 05:11 PM
Attach the VI you currently have. It probably has a loop in it somewhere, and loops are where you attach Shift Registers. If we see the VI, we can (better) show you where the Shift Register should go.
Note that as nice and powerful as LabVIEW might be, it cannot predict the future. If the clock has "ticked" and you haven't done something with point N-1, it's gone ...
Bob Schor
03-12-2017 06:15 PM
As Bob mentioned, I can't guess what your code looks like to make modifications to it.
Additionally, it wouldn't be a good use of anyone's time to create an example. You can go to help->find examples and enter either of those terms or put them into google and get a plethora of examples. The hardest part is knowing the name. Once you have that, google is your best friend (in any language)