% rtdx_text - Creates two text boxes. The top one can be used to input % text that is then sent to the DSP. The bottom box will display what the % DSP sends back. Callback uses the rtdx_echotext.m file % open a blank figure for the text boxes Fig = figure(1); % Initializes the string and spaceMode oldString = ''; spaceMode = 0; % Initializes the RTDX server h = actxserver('RTDX'); % create text box for entering text edit1 = uicontrol(Fig,'units','normal','pos',[.1,.5,.8,.4],... 'style','edit','callback','rtdx_echotext','KeyPressFcn','rtdx_echotext',... 'HorizontalAlignment','left','Max',3,'Min',1,'FontSize',18); % create text box for receiving text edit2 = uicontrol(Fig,'units','normal','pos',[.1,.1,.8,.4],... 'style','edit',... 'HorizontalAlignment','left','Max',3,'Min',1,'FontSize',18);