O-band Amp Characterization Measurement
This commit is contained in:
@@ -12,6 +12,7 @@ classdef Exfo_laser < handle
|
||||
safety_mode
|
||||
end
|
||||
|
||||
%% Any user can call these methods to alter the laser state
|
||||
methods (Access=public)
|
||||
|
||||
function obj = Exfo_laser(options)
|
||||
@@ -169,6 +170,10 @@ classdef Exfo_laser < handle
|
||||
end
|
||||
|
||||
end %public mehtods
|
||||
|
||||
|
||||
% DAU must not be able to call these funcitons outside of the class!
|
||||
% Hence they are private! :-)
|
||||
methods (Access=private)
|
||||
|
||||
function v = connectLaser_(obj)
|
||||
@@ -180,7 +185,7 @@ classdef Exfo_laser < handle
|
||||
configureTerminator(v, "CR", "CR"); % Set the terminator to carriage return (CR)
|
||||
elseif obj.lab_interface == lab_interface.gpib
|
||||
% Connect via GPIB adress
|
||||
visastring = ['GPIB0::',obj.connection_id,'::INSTR'];
|
||||
visastring = ['GPIB1::',obj.connection_id,'::INSTR'];
|
||||
v = visadev(visastring);
|
||||
else
|
||||
error('Interface not supported');
|
||||
@@ -342,8 +347,13 @@ classdef Exfo_laser < handle
|
||||
command = ['CH', num2str(channel), ':L=', num2str(desiredWavelength_nm)];
|
||||
writeline(serialObj, command);
|
||||
|
||||
if abs(obj.cur_wavelength - desiredWavelength_nm)>30
|
||||
pause(5); %it takes time to tune the laser! If this is not here it WILL break!
|
||||
else
|
||||
pause(1.5);
|
||||
end
|
||||
if serialObj.Type == visalib.InterfaceType.serial
|
||||
pause(0.2);
|
||||
pause(1.5);
|
||||
response = readline(serialObj);
|
||||
success = contains(response, 'OK');
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user