MATLAB Programming Example for Agilent's U2600A USB Modular (DAQ) Digital IO module

by

 

The U2651A is used as an example here.

DIO_Start.m
out=daqhwinfo('agilentu2600');
out.ObjectConstructorName(:);
dio=digitalio('agilentu2600',0);
dio

addline(dio,0:31,'in');
set(dio,'Triggertype')

set (dio,'Triggertype','Star');
dio.triggertype
start(dio);
getvalue(dio)
stop(dio);

set (dio,'Triggertype','None');
dio.triggertype
start(dio);
getvalue(dio)
stop(dio);

delete(daqfind);
delete(dio);
clear dio;

Contact us