function [] = OLGA_finished(da,stop)
%OLGA_FINISHED Summary of this function goes here
%   Detailed explanation goes here

%write(stop,1);  % Stop OLGA from running
disconnect(da); % Disconnect Da
delete(da);     % Remove OPC Toolbox objects from memory
opcreset;       % Disconnect and delete all OPC Toolbox objects

disp('Disconnected from OLGA');
clearvars da;
end

