From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
10-01-2011 09:09 AM
Hi, I am new to LabView, however I have programmed in various languages to a moderate level.
I have attached the vi that I am working on to test a simple array.
All I want it to do for just now so I can get my head around LabView arrays is simply add the string to the array each time the button is pressed.
So each time the button is pressed I want to add an new element to the array. So after say 10 presses there should be 10 elements
Regards,
jmcall10
10-01-2011 12:21 PM
Use a simple shift register.
If the button is pressed, add this element to the array, else pass the same array to the next loop iteration using the shift register. See the modified code.
10-01-2011 09:06 PM - edited 10-01-2011 09:08 PM
Some general suggestions:
Here's a quick draft...
(personally, I would use an event structure, but this should get you started).
10-02-2011 01:08 AM
Hi Altenbach,
Thank you for those suggestions. I knew 3 and 4, but 5 wasn't something I had thought of.
Thank you!