function [cmd] = addtocamlist(lowres,jobname,cm)

% jobname = lowres.jobname;

cmd = [addcmd('cli','administrator') ...
    addcmd('app','matrix') ...
    addcmd('sys','1') ...
    addcmd('cmd','add')  ...
    addcmd('tar','camlist') ...
    addcmd('exp',jobname) ...
    addcmd('slide',num2str(lowres.attributen.S)) ...
    addcmd('wellx',num2str(lowres.attributen.U)) ...
    addcmd('welly',num2str(lowres.attributen.V)) ...
    addcmd('fieldx',num2str(lowres.attributen.X+1)) ...
    addcmd('fieldy',num2str(lowres.attributen.Y+1)) ...
    addcmd('dxpos',num2str(cm(2))) ...
    addcmd('dypos',num2str(cm(1))) ...    
    ];

cmd = addcarriage(cmd);