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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an array without using "auto-indexing"

Hello,
it is terrible! I'm new in working with LV5.0 (Evaluation) and I can't
find any examples how to write data into an array without using the
function "auto-indexing" of the "WHILE" or "FOR"-loops..
The values do not appear all at the same time, so I can't use the
"create_array" function.
So I want to "collect" all occured values and then write them e.g. in a
file.

Did I miss anything in the description ???

Who can help me?

Thanks, CHZ
0 Kudos
Message 1 of 3
(2,568 Views)
If you are not doing a repetitive action and therefore can't use the auto
indexing of the loops then you just use the build array function. Extend the
function to add as many inputs as you need.

"CHZ" wrote in message news:38C4F13A.375AAB9F@gmx.de...
> Hello,
> it is terrible! I'm new in working with LV5.0 (Evaluation) and I can't
> find any examples how to write data into an array without using the
> function "auto-indexing" of the "WHILE" or "FOR"-loops..
> The values do not appear all at the same time, so I can't use the
> "create_array" function.
> So I want to "collect" all occured values and then write them e.g. in a
> file.
>
> Did I miss anything in the description ???
>
> Who can help me?
>
> Thanks, CHZ
>
>
0 Kudos
Message 2 of 3
(2,568 Views)
CHZ wrote in message news:38C4F13A.375AAB9F@gmx.de...
> Hello,
> it is terrible! I'm new in working with LV5.0 (Evaluation) and I can't
> find any examples how to write data into an array without using the
> function "auto-indexing" of the "WHILE" or "FOR"-loops..
> The values do not appear all at the same time, so I can't use the
> "create_array" function.
> So I want to "collect" all occured values and then write them e.g. in a
> file.

The "Create array" function can be configured to take arrays as well as
elements. You have to use a loop that iterates as often as necessary,
checking for new data. When it receives new data, it adds the new data to
the existing array. It's probably easier to attach a small example than to
describe it in more
detail.





[Attachment Array.zip, see below]
Message 3 of 3
(2,568 Views)