**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text 'NIVerified'. Read here for more information about the new Example Guidelines and Community Platform.**
Vince M Applications Engineer
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.