Solution
Currently, we don't provide any example codes for flashing with NI-XNET. However, it is possible to write a LabVIEW code that will implement the functionality.
You can find examples and suggestions in the NI Community forums. Some useful threads can be found in the Related Links section of this article.