function y = pswrite(x,a)

% pswrite - creates a binary file of timing information
%           for rtSend and linuxSend applications
%
% pswrite('filename',idt_array)
%
% idt_array - array of inter departure times
%

   fid = fopen(x,'wb');
   fwrite(fid,a,'double');

   y = fclose(fid);
