Figured it out...
You have to create 2 sessions.
s=daq.createSession('ni');
s1=daq.createSession('ni');
then associate only the inputs to one session and outputs to the other.
ch=s.addAnalogInputChannel('Dev1',0:2,'Voltage');
chout=s1.addAnalogOutputChannel('Dev1',1,'Voltage');
s1.outputSingleScan(1);
[data,timeStamp,triggerTime]=s.startForeground();
s1.outputSingleScan(0);
Next I'll try running it in a while loop. Hopefully that will work as well.