function [neg_on_err] = pb_set_num_points(num_points)
% FUNCTION NAME:
%   pb_set_num_points
%
% DESCRIPTION:
%   Set the number of complex points to capture. This is typically set to the
%   size of the onboard RAM, but a smaller value can be used if all points 
%   are not needed.
%
% INPUT:
%   num_points - The number of complex points to capture
%
% 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_num_points', num_points);

end