
function [out]=readwrite(sd, string)
fprintf(sd, string);
%
%Need this if the "echo" switch on the RS422-232 converter is set to "on".
%echostr = fscanf( sd );     
%if( !strcmp( string, echostr ) )
%  printf('readwrite:: Error - Command %s not accepted.\n', string)
%end
out = fscanf( sd )
return
