No BSD License  

MATLAB Programming Example for U2300A USB Modular Data Acquisition (DAQ) module’s Digital IO

by

Neo (view profile)

 

This program sets the USB DAQ module’s first 16 Digital IO ports to be digital inputs

DIO_Start.m
out=daqhwinfo('agilentu2300');
dio=digitalio('agilentu2300',0)
dio

addline(dio,0:15,'in')
set(dio,'TimerFcn',@daqcallback);
set(dio,'TimerPeriod',5.0);
start(dio)
dio
stop(dio)

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

Contact us