summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2012-09-18 08:39:28 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2012-09-18 08:39:28 -0400
commita30548fd5712d8a5ab8b046eaa33269e07fcff08 (patch)
tree7b4511e1cafca4893e9ecb8a850be7933a8ad31d
parent311829199dd9ef7bb84c7c95c5e5be1572c91704 (diff)
downloadbeam_profiler-a30548fd5712d8a5ab8b046eaa33269e07fcff08.tar.gz
beam_profiler-a30548fd5712d8a5ab8b046eaa33269e07fcff08.zip
when we call system we assign result and status
This good since we can use it later and also suppresses output from the grabber which fills the matlab command window.
-rw-r--r--gui_win.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui_win.m b/gui_win.m
index 23a3873..d3a64f7 100644
--- a/gui_win.m
+++ b/gui_win.m
@@ -116,7 +116,7 @@ global image_name;
global image_display;
global image_original;
run_string = horzcat('grabNimages_1394cam.exe -s ',num2str(get(handles.readshutterspeed,'String')),' -n ',num2str(get(handles.readnumber,'String')));
-system(run_string);
+[status,result] = system(run_string);
img=imread(image_name);
image_display=double(img);
image_original=image_display;