This example shipped with LabVIEW 2009 SP1. I'm posting it because this example wasn't included after LabVIEW 2013, but there was a request for it on the forum.
Christina Rogers Principal Product Owner, LabVIEW R&D
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.