Hello M. Anders,
the code I've want to use you can find at:
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=F1FCAA5EE87E4A64E0340003BA7CCD71
Download - 7_1_programmatic_saving.llb
Programmatic Saves of NI-DAQmx Tasks, Channels, and Scales Examples
I'm useing DAQmx 7.4 and LV7.1.
Thanks.
T. Nuding