function ms( varargin )
%this function is used to import user inputs along with Teslameter measurements
%into the variable "val" in the workspace.
%Try it out by entering
%ms 1 2
%ms 3 4
%examine val by entering
%val
%
%PS don't forget to save val for later use!
evalin( 'base', 'global val ' );
global val
for i=1:nargin
val(end+(i==1),i) = str2num( varargin{i} );
end
Teslameter = gpib( 'AGILENT', 7, 15 );
fopen( Teslameter );
fprintf( Teslameter, 'MEASure:FLUX?' );
val(end, i+1 ) = str2num( fscanf( Teslameter ) );
fclose( Teslameter );
