LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

React on Array's last Element arrival

Hello NI developers!

My VI reads data from board and fills array. As data acquisition speed is slower than VI performance I want VI react and perform action exactly when array gets it's last element. I don't want to use Stacked Sequence Structure, because there NEXT frame executes only when it gets all the data from previous frame and if I manipulate large amounts of data (i.e. Megabytes) it will be hanging somewhere in memory. I want to catch that moment when array filled with last element. Any advices how can I reach that?
Thank you in advance.


Message Edited by ACiDuser on 06-26-2008 08:17 AM
0 Kudos
Message 1 of 7
(3,027 Views)

Hi ACiDuser,

where comes your data from? How do you write it into your array? Do you use a loop? Can you explain a bit more, please?

Mike

0 Kudos
Message 2 of 7
(3,020 Views)
Are you expecting an exact number of elements or how do you know that the data acquisition has measured the last element ?
0 Kudos
Message 3 of 7
(3,019 Views)
Yes, I specify first of all - Kilobytes/Megabytes to be read by CIN. CIN uses FOR loop inside. And data passes to a 1-D array.
0 Kudos
Message 4 of 7
(3,015 Views)
This CIN executes with help of Event Structure, when I press button "READ"
0 Kudos
Message 5 of 7
(3,013 Views)
I want calculate transfer speed. CIN measures time that takes FOR Loop and sends it to LV. And I get this time with microsecond precision. I got an idea... Maybe I should use this Stacked Event Structure only for "Time" indicator.. and inside Check If it's not equal with 0 then - calculate speed!
0 Kudos
Message 6 of 7
(3,009 Views)
Found very simple solution... a While loop, which checks if Value is greater than 0. sorry for dummy question! 🙂
0 Kudos
Message 7 of 7
(2,999 Views)