04-25-2014 07:59 AM
@nunu wrote:
Thank you very much guys, one of the given solutions did suit my case and everything works smoothly atm.
Then you should thank that person with Kudos, and marking their answer and the solution.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-25-2014 09:27 AM - edited 04-25-2014 09:27 AM
One thing to keep in mind is that building an array in a loop can be expensive if large arrays are involved, because of the constant need of new memory allocations. This is not a problem with the current sizes, but will slow you down dramatically if very large arrays are involved. Doing the operations in-place can be several orders of magnitude faster.
Here is a quick rewrite how you would allocate the array once for the worst case scenario and then trim the excess at the end. This will be much more efficient and will give you much better performance. (Also not that this idea would simplify coding here, so please vote for it. :D)