| | |
| | | SCPI_ChoiceToName(trigger_source, param, &name); |
| | | fprintf(stderr, "\tP1=%s (%ld)\r\n", name, (long int)param); |
| | | |
| | | SCPI_ResultInt(context, param); |
| | | SCPI_ResultInt32(context, param); |
| | | |
| | | return SCPI_RES_OK; |
| | | } |
| | |
| | | static scpi_result_t TEST_Numbers(scpi_t * context) { |
| | | int32_t numbers[2]; |
| | | |
| | | SCPI_CommandNumbers(context, numbers, 2); |
| | | SCPI_CommandNumbers(context, numbers, 2, 1); |
| | | |
| | | fprintf(stderr, "TEST numbers %d %d\r\n", numbers[0], numbers[1]); |
| | | |
| | |
| | | char buffer[100]; |
| | | size_t copy_len; |
| | | |
| | | SCPI_ParamCopyText(context, buffer, sizeof(buffer), ©_len, FALSE); |
| | | buffer[copy_len] = '\0'; |
| | | if (!SCPI_ParamCopyText(context, buffer, sizeof(buffer), ©_len, FALSE)) { |
| | | buffer[0] = '\0'; |
| | | } |
| | | |
| | | fprintf(stderr, "TEXT: ***%s***\r\n", buffer); |
| | | |
| | |
| | | */ |
| | | static scpi_result_t My_CoreTstQ(scpi_t * context) { |
| | | |
| | | SCPI_ResultInt(context, 0); |
| | | SCPI_ResultInt32(context, 0); |
| | | |
| | | return SCPI_RES_OK; |
| | | } |