10-18-2019 08:47 AM
Hi, I am very new to Labview and I was assigned a task in school. I am supposed to produce an array with a given range and interval (which I had attached), however a time delay is needed such that the elements in the array would appear consecutively. How should I add this time delay into the loop? Would really appreciate someone's help, Thanks!
Solved! Go to Solution.
10-18-2019 09:05 AM
If you want to watch the elements be added to the array, then you need to use a shift register to hold the array, a Build Array to add elements to the array, and move the terminal inside of the FOR loop. As far as timing, just put a Wait (ms) function inside of the loop (look in the Timing palette).
10-20-2019 11:55 PM
Hi, does that means I will need another for loop to add shift register in order to put an array in?
10-21-2019 02:22 AM - edited 10-21-2019 02:29 AM
No - you can read about Shift Registers here, but essentially they are attached to any For or While loop you'd like.
They are used to store data between iterations of the loop on which they are added/placed. (Edit: An additional relevant point that might not have been obvious - you can add as many as you want to the same loop).
If the outside-left edge is not wired, then you have an "uninitialized shift register", described in more detail in the linked post. You don't want this here (but you can try it and see what it does). You'll probably instead want to wire an empty array to the left edge node (from the outside - the inside provides the updated value each iteration).