Skip to content
Snippets Groups Projects
Commit 7bc3865a authored by Pierre Korysko's avatar Pierre Korysko
Browse files

Added Holder Positions for Several Experiments

parent 9a2e025f
No related branches found
No related tags found
No related merge requests found
classdef Robot_GUI_exported < matlab.apps.AppBase
classdef Robot_GUI_Oct23_2 < matlab.apps.AppBase
% Properties that correspond to app components
properties (Access = public)
......@@ -130,40 +130,40 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
StepperIsMoving = NaN;
Pos_holders = [225 250 2225; ...
225 1825 2225; ...
717 250 2225; ...
717 1825 2225; ...
1198 250 2225; ...
1198 1825 2225; ...
1679 250 2225; ...
1679 1825 2225; ...
2160 250 2225; ...
2160 1825 2225; ...
2641 250 2225; ...
2641 1825 2225; ...
3122 250 2225; ...
3122 1825 2225; ...
3603 250 2225; ...
3603 1825 2225; ...
4084 250 2225; ...
4084 1825 2225; ...
4565 250 2225; ...
4565 1825 2225; ...
5046 250 2225; ...
5046 1825 2225; ...
5527 250 2225; ...
5527 1825 2225; ...
6008 250 2225; ...
6008 1825 2225; ...
6489 250 2225; ...
6489 1825 2225; ...
6970 250 2225; ...
6970 1825 2225; ...
7451 250 2225; ...
7451 1825 2225; ...
7932 250 2225; ...
8413 1825 2225];
Pos_holders = [210 200 2200; ...
210 1825 2200; ...
695 200 2200; ...
695 1825 2200; ...
1180 200 2200; ...
1180 1825 2200; ...
1660 200 2200; ...
1660 1825 2200; ...
2140 200 2200; ...
2140 1825 2200; ...
2620 200 2200; ...
2620 1825 2200; ...
3100 200 2200; ...
3100 1825 2200; ...
3575 200 2200; ...
3575 1825 2200; ...
4050 200 2200; ...
4050 1825 2200; ...
4535 200 2200; ...
4535 1825 2200; ...
4900 200 2200; ...
5010 1825 2200; ...
5495 200 2200; ...
5495 1825 2200; ...
5970 200 2200; ...
5970 1825 2200; ...
6445 200 2200; ...
6445 1825 2200; ...
6920 200 2200; ...
6920 1825 2200; ...
7451 200 2200; ...
7451 1825 2200; ...
7932 200 2200; ...
8413 1825 2200];
%List of all holder buttons,
% not possible to generate programattically in AppDesigner
......@@ -213,7 +213,7 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
%Plotting the position
axes(app.UIAxes_6);
% axes(app.UIAxes_6);
scatter(app.UIAxes_6,Pos_X, Pos_Z,100,"red",'filled');
rectangle(app.UIAxes_6,'Position', [0 1400 8000 1600],'FaceColor',[1, .8, .8, 0.5],'EdgeColor','r','LineWidth',1)
......@@ -222,7 +222,7 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
rectangle(app.UIAxes_6,'Position', [0 2000 8000 1000],'FaceColor',[0, 1, 1, 0.5],'EdgeColor','blue','LineWidth',1)
axes(app.UIAxes_5);
% axes(app.UIAxes_5);
scatter(app.UIAxes_5,Pos_X, Pos_Y,100,"red",'filled');
rectangle(app.UIAxes_5,'Position', [0 0 8000 2000],'FaceColor',[0, 1, 1, 0.5],'EdgeColor','blue','LineWidth',1)
......@@ -230,7 +230,7 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
rectangle(app.UIAxes_5,'Position', [0 5280 8000 2720],'FaceColor',[0, 1, 1, 0.5],'EdgeColor','blue','LineWidth',1)
text(app.UIAxes_5,3000,6750,'Beam tank')
axes(app.UIAxes_4);
% axes(app.UIAxes_4);
scatter(app.UIAxes_4,Pos_Y, Pos_Z,100,"red",'filled');
rectangle(app.UIAxes_4,'Position', [0 2000 2000 1000],'FaceColor',[0, 1, 1, 0.5],'EdgeColor','blue','LineWidth',1)
......@@ -247,7 +247,7 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
%
% app.UIAxes_3.View = [90 45];
% app.UIAxes_3.Projection = 'perspective';
%
% H=[0 8000 0 8000 0 8000 0 8000; 0 0 2000 2000 0 0 2000 2000; 3000 3000 3000 3000 1500 1500 1500 1500]; %Vertices of the cube
% S=[1 2 4 3; 1 2 6 5; 1 3 7 5; 3 4 8 7; 2 4 8 6; 5 6 8 7]; %Surfaces of the cube
% hold(app.UIAxes_3,"on")
......@@ -396,7 +396,8 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
app.conn.stepperGo('X',Pos_h_X);
app.conn.stepperGo('Y',Pos_h_Y);
app.conn.stepperGo('Z',Pos_h_Z);
app.conn.grabberClose;
%app.conn.grabberClose;
app.conn.grabberGo(80);
app.conn.updateGrabberStatus
......@@ -492,10 +493,53 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
function PutHolderInBeamPushed(app, event)
app.conn.updateGrabberStatus
% FOR Screen dosimetry (film center)
app.conn.stepperGo('Z',50);
app.conn.stepperGo('Y',7210);
app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*7803/460+95*7803/460);
app.conn.stepperGo('Z',2340);
app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*20+1611);
app.conn.stepperGo('Z',2240);
% FOR CHUV Plasmids and ZFE (low)
% app.conn.stepperGo('Z',50);
% app.conn.stepperGo('Y',7210);
% app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*20+1611);
% app.conn.stepperGo('Z',2225);
% FOR UVic Drosophilia (low)
% app.conn.stepperGo('Z',50);
% app.conn.stepperGo('Y',7210);
% app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*20+1611);
% app.conn.stepperGo('Z',2425);
%
% FOR CHUV Chemistry (center)
% app.conn.stepperGo('Z',50);
% app.conn.stepperGo('Y',7210);
% app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*20+1611);
% app.conn.stepperGo('Z',2300);
% FOR Hannah Plasmids (1.5 mL tubes)
% app.conn.stepperGo('Z',50);
% app.conn.stepperGo('Y',7210);
% app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*20+1611);
% app.conn.stepperGo('Z',2350);
% For Scatterers
% app.conn.stepperGo('Z',50);
% app.conn.stepperGo('Y',7140);
% app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*20+1611);
% app.conn.stepperGo('Z',2380);
% For Scatterers 2
% app.conn.stepperGo('Z',50);
% app.conn.stepperGo('Y',7210);
% app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*20+1611);
% app.conn.stepperGo('Z',2240);
% For Scatterers 3
% app.conn.stepperGo('Z',50);
% app.conn.stepperGo('Y',7210);
% app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*20+1611);
% app.conn.stepperGo('Z',2340);
%Disable itself, enable bringback button
app.BringbackholderButton.Enable = true;
......@@ -598,7 +642,8 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
app.conn.stepperGo('Y',app.Pos_hold_Y);
app.conn.stepperGo('Z',app.Pos_hold_Z);
app.conn.grabberClose();
%app.conn.grabberClose();
app.conn.grabberGo(80);
app.conn.updateGrabberStatus();
end
......@@ -1363,7 +1408,7 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
methods (Access = public)
% Construct app
function app = Robot_GUI_exported
function app = Robot_GUI_Oct23_2
% Create UIFigure and components
createComponents(app)
......@@ -1386,4 +1431,4 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
delete(app.UIFigure)
end
end
end
\ No newline at end of file
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment