Hi LikeCoCo,
It looks like you're posting to a pretty old thread. In accordance with our guidelines, it would be best if you opened a new thread If you'd like to ask specific questions about how the code is implemented, I would make a small replicating case of the code in question, and create a new thread.
Regards,
Pat
Applications Engineer | National Instruments