% rtdx_wrt_sliders : writes values of sliders out to rtdx

% open rtdx port for data transfer
status = invoke(h,'Open','ichan','W');
 
% send value from sld1
v1 = round(get(sld1,'value')); 
status = invoke(h,'Write',int16(v1));

% send value from sld2
v2 = round(get(sld2,'value')); 
status = invoke(h,'Write',int16(v2));

% send value from sld3
v3 = round(get(sld3,'value')); 
status = invoke(h,'Write',int16(v3));

% send reset pulse
status = invoke(h,'Write',int16(2989));

% close rtdx port
status = invoke(h,'Close');