function [neg_on_err] = pb_stop_programming()
% FUNCTION NAME:
%   pb_stop_programming
%
% DESCRIPTION:
%   Finishes the programming for a specific onboard devices which
%   was started by pb_start_programming().
%
% INPUTS:
%
% OUTPUTS:
%   neg_on_err - A negative number is returned on failure, and spinerr is set
%                to a description of the error. 0 is returned on success. 
%
% $Revision: R2017a$ 
% $Author: SpinCore Technologies, Inc.$
% $Date: November 17, 2023$
% ------------------------------------------------------------------------------

global SPINAPI_DLL_NAME;

neg_on_err = calllib(SPINAPI_DLL_NAME, 'pb_stop_programming');

end