02-07-2008 02:36 PM
02-07-2008
03:02 PM
- last edited on
06-18-2025
08:37 PM
by
Content Cleaner
An event structure can be used to execute code on user button presses, and shift registers allow you to store data between loop iterations.
https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/structures/event-structure.html
http://zone.ni.com/reference/en-XX/help/371361B-01/lvhowto/creating_shift_registers/
And, because a while loop will not iterate until all the code inside it has executed, it will only iterate on your button presses, meaning you now have an array of indexed data. In Your Data Read, the assumption is that this continuous signal is being read for one sample when the SubVI is called.