<commit_before>function adc_info = get_adc_info(hwid)

c_params_struct = struct(..
        "c_number", [],..
        "c_range_desc", [],..
        "c_range_value", [],..
        "c_range", [],..
        "c_bipolar", [],..
        "c_diff", []); 

c_params_e1xxx = list();
c_params_e2000 = list();

c_params_e1xxx(1) = struct(..
        "c_number", [1],..
        "c_range_desc", ["±10V"; "±5V"; "0-10V"; "0-5V"],..
        "c_range_value",[[-10,10]; [-5,5]; [0,10]; [0,5]],..
        "c_range", [0;1;0;1],..
        "c_bipolar", [24;24;25;25],..
        "c_diff", [1;1;1;1]); 
        
c_params_e1xxx(2) = struct(..
        "c_number", [2],..
        "c_range_desc", ["±10V"; "±5V"; "0-10V"; "0-5V"],..
        "c_range_value",[[-10,10]; [-5,5]; [0,10]; [0,5]],..
        "c_range", [0;1;0;1],..
        "c_bipolar", [24;24;25;25],..
        "c_diff", [1;1;1;1]); 


c_params_e2000(1) = struct(..
        "c_number", [1],..
        "c_range_desc", ["±10V"; "±5V"; "0-10V"; "0-5V"],..
        "c_range_value",[[-10,10]; [-5,5]; [0,10]; [0,5]],..
        "c_range", [0;1;0;1],..
        "c_bipolar", [24;24;25;25],..
        "c_diff", [1;1;1;1]); 

c_params_e2000(2) = struct(..
        "c_number", [2;3;4;5],..
        "c_range_desc", ["±10V"; "±5V"; "±2V"; "±1V"],..
        "c_range_value",[[-10,10]; [-5,5]; [-2,2]; [-1,1]],..
        "c_range", [0;1;2;3],..
        "c_bipolar", [24;24;24;24],..
        "c_diff", [0;0;0;0]); 


    c_params_e2000(3) = struct(..
        "c_number", [6;7;8;9;10],..
        "c_range_desc", ["±10.24V"; "±5.12V"; "±2.56V"; "±1.24V"; "±0.64V"],..
        "c_range_value",[[-10.24,10.24]; [-5.12,5.12]; [-2.56,2.56]; [-1.24,1.24];[-0.64,0.64];],..
        "c_range", [0;1;2;3;4],..
        "c_bipolar", [24;24;24;24;24],..
        "c_diff", [1;1;1;1;1]); 

    adc_unknown = struct(..
            "id", 0, ..
            "comment", "",..
            "channel", "Unknown",..
            "rate", "Unknown",..
            "resolution", "Unknown",..
            "range", "Unknown",..
            "c_params", struct(..
                    "c_number", [],..
                    "c_range_desc", [],..
                    "c_range_value", [],..
                    "c_range", [],..
                    "c_bipolar", [],..
                    "c_diff", []));
                     
    adc_lookup = list(),
    adc_info = adc_unknown,

    if hwid(1) == 2000 | hwid(1) == 1000 then
        //MDAQ E2000   
        adc_lookup(1) = struct(..
            "id", 1,..
            "comment", "",..
            "channel", "8",..
            "rate", "100ksps",..
            "resolution", "12-bit",..<commit_msg>Correct range description in adc_info<commit_after>function adc_info = get_adc_info(hwid)

c_params_struct = struct(..
        "c_number", [],..
        "c_range_desc", [],..
        "c_range_value", [],..
        "c_range", [],..
        "c_bipolar", [],..
        "c_diff", []); 

c_params_e1xxx = list();
c_params_e2000 = list();

c_params_e1xxx(1) = struct(..
        "c_number", [1],..
        "c_range_desc", ["±10V"; "±5V"; "0-10V"; "0-5V"],..
        "c_range_value",[[-10,10]; [-5,5]; [0,10]; [0,5]],..
        "c_range", [0;1;0;1],..
        "c_bipolar", [24;24;25;25],..
        "c_diff", [1;1;1;1]); 
        
c_params_e1xxx(2) = struct(..
        "c_number", [2],..
        "c_range_desc", ["±10V"; "±5V"; "0-10V"; "0-5V"],..
        "c_range_value",[[-10,10]; [-5,5]; [0,10]; [0,5]],..
        "c_range", [0;1;0;1],..
        "c_bipolar", [24;24;25;25],..
        "c_diff", [1;1;1;1]); 


c_params_e2000(1) = struct(..
        "c_number", [1],..
        "c_range_desc", ["±10V"; "±5V"; "0-10V"; "0-5V"],..
        "c_range_value",[[-10,10]; [-5,5]; [0,10]; [0,5]],..
        "c_range", [0;1;0;1],..
        "c_bipolar", [24;24;25;25],..
        "c_diff", [1;1;1;1]); 

c_params_e2000(2) = struct(..
        "c_number", [2;3;4;5],..
        "c_range_desc", ["±10V"; "±5V"; "±2V"; "±1V"],..
        "c_range_value",[[-10,10]; [-5,5]; [-2,2]; [-1,1]],..
        "c_range", [0;1;2;3],..
        "c_bipolar", [24;24;24;24],..
        "c_diff", [0;0;0;0]); 


    c_params_e2000(3) = struct(..
        "c_number", [6;7;8;9;10],..
        "c_range_desc", ["±10.24V"; "±5.12V"; "±2.56V"; "±1.28V"; "±0.64V"],..
        "c_range_value",[[-10.24,10.24]; [-5.12,5.12]; [-2.56,2.56]; [-1.24,1.24];[-0.64,0.64];],..
        "c_range", [0;1;2;3;4],..
        "c_bipolar", [24;24;24;24;24],..
        "c_diff", [1;1;1;1;1]); 

    adc_unknown = struct(..
            "id", 0, ..
            "comment", "",..
            "channel", "Unknown",..
            "rate", "Unknown",..
            "resolution", "Unknown",..
            "range", "Unknown",..
            "c_params", struct(..
                    "c_number", [],..
                    "c_range_desc", [],..
                    "c_range_value", [],..
                    "c_range", [],..
                    "c_bipolar", [],..
                    "c_diff", []));
                     
    adc_lookup = list(),
    adc_info = adc_unknown,

    if hwid(1) == 2000 | hwid(1) == 1000 then
        //MDAQ E2000   
        adc_lookup(1) = struct(..
            "id", 1,..
            "comment", "",..
            "channel", "8",..
            "rate", "100ksps",..
            "resolution", "12-bit",..
{'fraction_non_alphanumeric': 0.2805155420773313, 'fraction_numerical': 0.10007581501137225, 'mean_word_length': 1.707542329399692, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4801477', 'n_tokens_mistral': 2467, 'n_tokens_neox': 2241, 'n_words': 313}