% Lab2.m % here I believe this is all the statements you need but you % need to fill in the WWW XXX YYY ...etcs delete(daqfind) ao = analogoutput('nidaq','Dev3'); addchannel(ao, [0 1]); putsample(ao, [5,5]); % testing, testing.... disp('any key to turn off'); pause; putsample(ao, [0,0]); for k = 1: XXX vout1 = YYY vout2 = ZZZ putsample(ao, WWW); pause(0.02); end putsample(ao, [0,0]); % turn off lights when you leave.