LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding ouput into appended array

Hi,

 

I have a labview which gives a single element as an output after each test run. Is it possible to add this single dynamic output to previous data resulting into an Array(1-D).

Thank you for your Help!!

0 Kudos
Message 1 of 8
(3,401 Views)

Hi oo77of917,

you can use "build Array" or replace array on an initialized array. Which type of data shall your array have?

 

Mike

0 Kudos
Message 2 of 8
(3,398 Views)

If the "Test run" is happening in a loop then just get the single element out of the loop with "enabling index" and you have an array.

 

ind.JPG

0 Kudos
Message 3 of 8
(3,395 Views)

Thanks Mike & Muks for your reply.

In my case is that when I run the program once it returns a single ouput. The second time I run the program it provides with an different value of output as opbvious. But at the end of say ten test runs. I wan to to see all the ten outputs in an array. Is it possible?

I am trying to write an read the output after each test run. Is it sensible? or Is there any other way?

I am attaching my program for your reference. and a snap shot of the final output (TOF) which i want to retrive data for all ten runs.

 

Thank You

 

Download All
0 Kudos
Message 4 of 8
(3,365 Views)

Hi oo77of917,

do you run your program in "run continuous mode"? You shouldn't do that! If your values come from the for loop, then you can use the autoindexing function, muks mentioned.

 

Mike

0 Kudos
Message 5 of 8
(3,362 Views)

You can use something like this

 

shift.JPG

0 Kudos
Message 6 of 8
(3,348 Views)
Thank You Mike nd Muks again.The Vi is operating as desired now. I am still developing the same VI to make it user friendly and would be thankful for your help ahead.
0 Kudos
Message 7 of 8
(3,323 Views)

Glad we will be to help. Attach you vi as i think this is just a part of the vi. If your question is solved mark "the solution".

 

 

0 Kudos
Message 8 of 8
(3,289 Views)