| | |
| | | } |
| | | |
| | | static scpi_result_t DMM_ConfigureVoltageDc(scpi_t * context) { |
| | | double param1, param2; |
| | | double param1 = -1.0, param2 = -1.0; |
| | | fprintf(stderr, "conf:volt:dc\r\n"); /* debug command name */ |
| | | |
| | | /* read first parameter if present */ |
| | |
| | | chanlst_idx = 0; /* call first index */ |
| | | arr_idx = 0; /* set arr_idx to 0 */ |
| | | do { /* if valid, iterate over channel_list_param index while res == valid (do-while cause we have to do it once) */ |
| | | res = SCPI_ExprChannelListEntry(context, &channel_list_param, chanlst_idx, &is_range, values_from, values_to, 4, &dimensions); |
| | | res = (scpi_expr_result_t)SCPI_ExprChannelListEntry(context, &channel_list_param, chanlst_idx, &is_range, values_from, values_to, 4, &dimensions); |
| | | if (is_range == FALSE) { /* still can have multiple dimensions */ |
| | | if (dimensions == 1) { |
| | | /* here we have our values |
| | |
| | | * row == n |
| | | * col == m |
| | | * call a function or something */ |
| | | array[arr_idx].row = n; |
| | | array[arr_idx].col = m; |
| | | array[arr_idx].row =(int32_t) n; |
| | | array[arr_idx].col = (int32_t)m; |
| | | arr_idx++; |
| | | if (arr_idx >= MAXROW * MAXCOL) { |
| | | return SCPI_RES_ERR; |