You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: PIVlab_capture_chronos_synced_start.m
    path of file: ./repos/PIVlab/PIVlab_capture_resources
    
    the code of the file until where you have to start completion: %synchronizer befehl: FREQ:2;CAM:0;ENER:0;ener%:100;F1EXP:0;INTERF:10000;EXTDLY:0;EXTSKP:0;LASER:enable{013}
% nur freq und ener% --> pulsl√§nge in us und interf wird verwendet

function [OutputError] = PIVlab_capture_chronos_synced_sta
    
function [OutputError] = PIVlab_capture_chronos_synced_start(cameraIP,frameRate)
cmd_delays=0.1;
cameraURL = ['http://' cameraIP];
options = weboptions('MediaType','application/json','HeaderFields',{'Content-Type' 'application/json'});
ima_nr=0;


%% Get data from main GUI
hgui=getappdata(0,'hgui');

OutputError=0;
PIVlab_axis = findobj(hgui,'Type','Axes');

resx=getappdata(hgui,'Chronos_resx');
resy=getappdata(hgui,'Chronos_resy');
bitdepth=getappdata(hgui,'Chronos_bits');


image_handle_chronos=imagesc(zeros(resy,resx),'Parent',PIVlab_axis,[0 2^16]);
setappdata(hgui,'image_handle_chronos',image_handle_chronos);
frame_nr_display=text(100,100,'Initializing...','Color',[1 1 0],'Interpreter','none');
colormap default %reset colormap steps
new_map=colormap('gray');
new_map(1:3,:)=[0 0.2 0;0 0.2 0;0 0.2 0];
new_map(end