08-09-2016 06:27 AM
I am trying to remove the first value of real time data without it going into an array. I have tried using variables and some maths to ingore it but i havent got it to work.
If you have any ideas please let me know.
I have attached a file of an exmple but also a snapshot of what i am trying to do.
Any help would be useful.
Solved! Go to Solution.
08-09-2016 06:39 AM
08-09-2016 06:49 AM
Hi GerdW
thanks for your quick response, how do you define the first iteration if you do not know its value?
i am new to LabView so i apologise if this seems mediocre
08-09-2016 06:58 AM
08-09-2016 07:25 AM
I don't remember where Conditional Tunnels were introduced (I think 2012 or 2013), but here's how to do this with such a tunnel.
Normally, the While loop would build an array of all the Random Numbers you were generating. However, the Conditional terminal, initialized to False (and reset to True for every iteration except the first) prevents the first number from being included in the Indexed array output.
The Conditional Indexed tunnel simplifies (a lot) the selective "building" of arrays from within a loop.
Bob Schor