tg = slrt; %% TODO - Build this application if updated %% if tg.Connected == "Yes" if tg.Status == "running" disp('Target is Running, Stopping...'); tg.stop; while tg.Status == "running" pause(1); end disp('Target is Stopped'); end if tg.Status == "stopped" disp('Load the Application'); tg.load('measure_channels'); %% Run the application disp('Starting the Application'); tg.start; slrtexplr; end end