Yes you can use LabVIEW to do on-board programming. The tutorial in my post above has links for VI's in LabVIEW that demonstrate how to perform Do-While loops, For loops, and other functionality. I've included a document with this post that goes into more detail of on-board programming with LabVIEW.
Regards,
Doug K.
Application Engineering
National Instruments