I found the attached example for simultaenuous DIO, with the possibillity to change the line direction, for E-series devices.
Hope that helps.
Unfortunately it is written in traditional daq but you should be able to program it in DAQmx, because it works similar.