Hey ks12,
I would highly suggest using either the Switch API or the DAQmx Switch API. For instance, instead of switching relays by "typing" them as a digital output, you just simply connect channels together after initializing to a certain topology. Since you said you wanted to use DAQmx, I would suggest going to (in LabVIEW) Help>>Find Examples then click the "search" tab and search for "switch". You should find several examples to help you begin coding using the Switch or DAQmx-Switch API. This is much easier (and faster) than using the Traditional DAQ API.
Good luck,
Gavin Goodrich
Applications Engineer
National Instruments