%Broadway lights clear; delete(daqfind); % clear everything out daqhwinfo('nidaq') % just for fun DIO = digitalio('nidaq', 'Dev3'); % always use 'nidaq' in this call % but you may need 'Dev4' or something else. See the tutorial and %assignemnt. daqhwinfo(DIO) % more fun DIO % this should display a summary of the device DOlines = addline(DIO, 0:2, 'out'); % create 3 output lines for i = 1:25 for k = [0 1 2 4 2 1] putvalue(DOlines,k); % send in decimal, %which is convtd to binary (array). pause(.1) end end putvalue(DOlines, [0 0 0]); % turn 'em off: another way to make a 'binary' array. delete(daqfind); % clear everything out