I use the DAQ NI6703 for output voltage negative by using Matlab , I used putsample function putsample(ao,-1); however ,I cannot output the voltage negative. I have tested the NI6703 by NI MAXmx, it fonctionne correctly.
this is my code :
%-------write to a NI 6703 DAQ device---------%
%-------------Initialization------------------%
%--------------analog Output------------------%
ao=analogoutput('nidaq','Dev2');
%-------Adding Channels----------------------%
%-------Analog Output------------------------%
addchannel(ao,0);
%--------write data--------------------------%
ao_value =-1;
putsample(ao,ao_value);
%----cleaning Up------%
%waittilstop(ao,5)
delete(ao);
clear ao;