return sensor label from calib_info [usage] [label] = vb_calibinfo_get_sensor_label(calib_info) [input] calib_info : <required> <<struct>> calibration information : temporary struct for pre-process : .sensitivity <<struct array>> [1 x n_ch] : .offset : .gain : .fll <struct array>> [1 x n_fll] : .gain : .ad : .bit : .analog_range : : .sensor_label {n_ch x 1} [output] label : sensor label list (cell array) [note] [history] 2007-06-28 (Sako) initial version 2011-06-28 (Sako) modofieid for the new YOKOGAWA library Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function [label] = vb_calibinfo_get_sensor_label(calib_info) 0002 % return sensor label from calib_info 0003 % 0004 % [usage] 0005 % [label] = vb_calibinfo_get_sensor_label(calib_info) 0006 % 0007 % [input] 0008 % calib_info : <required> <<struct>> calibration information 0009 % : temporary struct for pre-process 0010 % : .sensitivity <<struct array>> [1 x n_ch] 0011 % : .offset 0012 % : .gain 0013 % : .fll <struct array>> [1 x n_fll] 0014 % : .gain 0015 % : .ad 0016 % : .bit 0017 % : .analog_range 0018 % : 0019 % : .sensor_label {n_ch x 1} 0020 % 0021 % [output] 0022 % label : sensor label list (cell array) 0023 % 0024 % [note] 0025 % 0026 % [history] 0027 % 2007-06-28 (Sako) initial version 0028 % 2011-06-28 (Sako) modofieid for the new YOKOGAWA library 0029 % 0030 % Copyright (C) 2011, ATR All Rights Reserved. 0031 % License : New BSD License(see VBMEG_LICENSE.txt) 0032 0033 % --- CHECK ARGUMENTS --- % 0034 if ~exist('calib_info', 'var'), calib_info = []; end 0035 [calib_info] = inner_check_arguments(calib_info); 0036 0037 0038 % --- MAIN PROCEDURE --------------------------------------------------------- % 0039 % 0040 label = calib_info.sensor_label; 0041 return; 0042 % 0043 % --- END OF MAIN PROCEDURE -------------------------------------------------- % 0044 0045 0046 % --- INNER FUNCTIONS -------------------------------------------------------- % 0047 % 0048 % --- inner_check_arguments() 0049 % 0050 function [calib_info] = inner_check_arguments(calib_info) 0051 0052 func_ = mfilename; 0053 if isempty(calib_info) 0054 error('(%s)calib_info is a required parameter', func_); 0055 end 0056 0057 if ~isfield(calib_info, 'sensor_label') 0058 calib_info.sensor_label = []; 0059 end 0060 % 0061 % --- end of inner_check_arguments() 0062 % 0063 % --- END OF INNER FUNCTIONS ------------------------------------------------- % 0064 0065 % --- END OF FILE --- %