LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to write to an array intermittently?

Imagine in a conventional program like C, you have initialized k = 0, and then entered a while loop. Inside the loop you have a line like:
if(condition) {k=k+1; array[k] = expression;}
How do I do the equivalent in LabVIEW?
The actual LAbVIEW operation I am trying to do is to record a reading every time the user presses a button in a non-time dependent application.

Thanks.
0 Kudos
Message 1 of 3
(2,556 Views)
Hi,

take a look at the code I attached to this post.
Maybe it will help you a bit.

Stephan
0 Kudos
Message 2 of 3
(2,556 Views)
Hello,

That seems to sort the issue.

Kind Regards

LouisP
Applications Engineer
NI-UK
0 Kudos
Message 3 of 3
(2,556 Views)