% iviewxsimulator % simulates iviewx host behaviour fprintf([mfilename ' start\n']); clear; try streaming=0; % [result, ivx]=iViewX('clear', ivx); pnet('closeall'); host='localhost'; port=4444; ivx=iViewXInitDefaults([],[], host, port); ivx.localport=6666; % ivx.stopSimulatorKey=KbName('ESC'); ivx; [result, ivx]=iViewX('openconnection', ivx); while KbCheck; end % start a loop, waiting for commands from client tEnd=GetSecs+300; i=0; while GetSecs