function [cmdsave] = starthighres(obj,cm,cmlabelim,plate,labelim,jobname)

% Delete list 
send = deletelist;
sendcmd(obj,send);

cm = round(cm);

cmdsave = cell(size(cm,1),1);
n = size(cm,1);
msg = ['Number of highres fields: ' int2str(n)];
disp(msg);
for i = 1 : n

    % which lowres image are we in?
    x = round(cmlabelim(i,1)); 
    y = round(cmlabelim(i,2));
    label = labelim(x,y);

    % revert to local coordiantes
    cmhere = cm(i,:);

    msg = ['Adding to list coordinates ' num2str(cmhere)];
    disp(msg);

    % add the job to cam list
    if label == 0
        continue;
    end;
    send = addtocamlist(plate.info{label}.lowres,jobname,cmhere);
    sendcmd(obj,send);      
    
    % keep the information to restore which well the images belong to
    cmdsave{i,1} = send;
    
end;

% pause

% prepare the scan
send = startcamscan;
sendcmd(obj,send);        

% stop wait for camscan, starts the scan
send = stopwaitcamscan();
sendcmd(obj,send);


