LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I insert a value into the next element of an array

I'm stuck! How can I insert a value into the next element of an array. I have real time values continually updating on the screen when I see one I like, I would like then to click a button and that value is then put with the rest of the values I liked in an array?
0 Kudos
Message 1 of 5
(2,459 Views)
You need shift registers and the build array function. Put the build array to join your new value to the existing array inside a case statement controlled by the button which you press when you like a value. The array goes through the case statement to the shift register so that it’s waiting for you to add another element. The shift register is in a while statement.

This is a frequent and fundamental idiom of LabVIEW.
0 Kudos
Message 2 of 5
(2,441 Views)
Here's a simple example using an event structure (LabVIEW 7.0).
0 Kudos
Message 3 of 5
(2,424 Views)
Thank you for the advice and picture it helped a lot.
0 Kudos
Message 4 of 5
(2,391 Views)
Thankyou for the vi it helped. It seems I need to use shift registers more.
0 Kudos
Message 5 of 5
(2,390 Views)