| | |
| | | return fwrite(data, 1, len, stdout); |
| | | } |
| | | |
| | | scpi_result_t SCPI_Flush(scpi_t * context) { |
| | | scpi_result_t SCPI_Flush(scpi_t * context) { |
| | | return SCPI_RES_OK; |
| | | } |
| | | |
| | |
| | | scpi_result_t SCPI_SystemCommTcpipControlQ(scpi_t * context) { |
| | | return SCPI_RES_ERR; |
| | | } |
| | | |
| | | /* |
| | | * |
| | | */ |
| | |
| | | printf("SCPI Interactive demo\r\n"); |
| | | char smbuffer[10]; |
| | | while (1) { |
| | | if (NULL == fgets(smbuffer, 10, stdin)) { |
| | | break; |
| | | } |
| | | SCPI_Input(&scpi_context, smbuffer, strlen(smbuffer)); |
| | | if (NULL == fgets(smbuffer, 10, stdin)) { |
| | | break; |
| | | } |
| | | SCPI_Input(&scpi_context, smbuffer, strlen(smbuffer)); |
| | | } |
| | | |
| | | |