MATLAB Programming Example for U2500A USB Modular Data Acquisition (DAQ) module’s Analog Output

by

 

Analog output sends out discrete values and the analog input is used to measure that value

AO_PutSample_GetSampe.m
out=daqhwinfo('agilentu2500');
out.ObjectConstructorName(:)

ai=analoginput('agilentu2300');
ao=analogoutput('agilentu2300');
addchannel(ai, 0)
addchannel(ao, 0)

putsample(ao,0) 
getsample (ai)

putsample(ao,8)
getsample (ai)

putsample(ao,10)
getsample (ai)

daqfind;
delete(daqfind);
clear ai;

Contact us