function [err_str] = pb_get_error()
% FUNCTION NAME:
%   pb_get_error
%
% DESCRIPTION:
%   Return the most recent error string. Anytime a function (such
%   as pb_init(), pb_start_programming(), etc.) encounters an error, this 
%   function will return a description 
%
% INPUTS:
%
% OUTPUTS:
%   err_str - A string describing the last error is returned. A blank string is 
%             returned if the last function call was successful. 
%
% $Revision: R2017a$ 
% $Author: SpinCore Technologies, Inc.$
% $Date: November 17, 2023$
% ------------------------------------------------------------------------------

global SPINAPI_DLL_NAME;

err_str = calllib(SPINAPI_DLL_NAME, 'pb_get_error');

end