function [neg_on_err] = pb_set_defaults()
% FUNCTION NAME:
%   pb_set_defaults
%
% DESCRIPTION:
%   This function sets the RadioProcessor to its default state. It has no 
%   effect on any other SpinCore product. This function should generally be 
%   called after pb_init() to make sure the RadioProcessor is in a usable 
%   state. It is REQUIRED that this be called at least once after the board 
%   is powered on. However, there are a few circumstances when you would not
%   call this function. In the case where you had one program that configured
%   the RadioProcessor, and another seperate program which simply called
%   pb_start() to start the experiment, you would NOT call pb_set_defaults() 
%   in the second program because this would overwrite the configuration set
%   by the first program.
%
% INPUT:
%
% OUTPUT:
%   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_set_defaults');

end