Hello Tommy,
Thanks for sharing the code!
This will probably also help other people with similar issues.
Have a nice weekend!
Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉