10-21-2015 03:42 AM
Dear all,
I wonder how i can store data within a subVI when the iterating loop (an thus the shift registers) are in the mainVI (or in my actual case, four levels up in VI calling).
so far i solved this with a global array variable , but i feel this is not the way to do this. what is the best way for this?
Thank you for your advice!
Solved! Go to Solution.
10-21-2015 03:51 AM
Hi OPCler,
how i can store data within a subVI
To store data within a subVI you should use shift registers (or feedback nodes) IN the subVI.
i solved this with a global array variable , but i feel this is not the way to do this. what is the best way for this?
There is no "best" way - you need to look for appropriate ways!
- functional globals aka action engines
- notifiers
- global variables
- DVR
10-21-2015 04:04 AM
Feedback node! thats what i was looking for!
10-21-2015 04:12 AM
10-21-2015 04:36 AM
what an evil hack ^^
10-21-2015 05:11 AM
@OPCler wrote:
what an evil hack ^^
It is not a hack. It is actually by design that we can use shift registers and feedback nodes to store state information ever since LabVIEW 2.0.
And you should also read up on the Action Engine.