| | |
| | | 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; |
| | | } |
| | |
| | | char buffer[100]; |
| | | size_t copy_len; |
| | | |
| | | buffer[0] = 0; |
| | | SCPI_ParamCopyText(context, buffer, 100, ©_len, false); |
| | | if(!SCPI_ParamCopyText(context, buffer, sizeof(buffer), ©_len, false)) { |
| | | buffer[0] = '\0'; |
| | | } |
| | | |
| | | fprintf(stderr, "TEXT: ***%s***\r\n", buffer); |
| | | |
| | |
| | | */ |
| | | scpi_result_t My_CoreTstQ(scpi_t * context) { |
| | | |
| | | SCPI_ResultInt(context, 0); |
| | | SCPI_ResultInt32(context, 0); |
| | | |
| | | return SCPI_RES_OK; |
| | | } |