changes form lab pc again
This commit is contained in:
@@ -28,7 +28,6 @@ if run_lab_automation
|
||||
[v_bias_meas,i_bias_meas]=dcs.readVals();
|
||||
end
|
||||
% Laser
|
||||
|
||||
if (any(confPrev.laser_power ~= conf.laser_power)) || (~exist('laser','var')) || (isempty(confPrev.laser_power))
|
||||
laser = Exfo_laser("mainframe_channel",1,"safety_mode",0,"connection_id",'10','lab_interface','gpib');
|
||||
laser.setWavelength(conf.wavelength);
|
||||
@@ -187,6 +186,7 @@ for recIdx = 1:n_recording
|
||||
db.appendToTable('Configurations', conf);
|
||||
|
||||
%% Append to Measurements Table
|
||||
laser.getLaserInfo;
|
||||
meas = db.tables.Measurements;
|
||||
meas.measurement_id = NaN;
|
||||
meas.run_id = run_id;
|
||||
@@ -204,12 +204,12 @@ for recIdx = 1:n_recording
|
||||
|
||||
db.appendToTable('Measurements', meas);
|
||||
|
||||
|
||||
%% Submit DSP Routine
|
||||
|
||||
if subimt_DSP
|
||||
[out, a] = submit_dsp(run_id, databasePath, database_name, savePath, ...
|
||||
"parallel", parallel_dsp, "max_occurences", max_occurences);
|
||||
if recIdx == 1
|
||||
if subimt_DSP
|
||||
[out, a] = submit_dsp(run_id, databasePath, database_name, savePath, ...
|
||||
"parallel", parallel_dsp, "max_occurences", max_occurences);
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ if options.parallel
|
||||
% Check if a pool exists
|
||||
pool = gcp('nocreate');
|
||||
if isempty(pool)
|
||||
parpool;
|
||||
parpool(4);
|
||||
end
|
||||
|
||||
% Submit the DSP function asynchronously
|
||||
|
||||
Reference in New Issue
Block a user