| | |
| | | err_buffer_pos = 0; |
| | | |
| | | SCPI_RegClearBits(&scpi_context, SCPI_REG_STB, STB_QMA); |
| | | SCPI_EventClear(&scpi_context); |
| | | SCPI_RegSet(&scpi_context, SCPI_REG_ESR, 0); |
| | | SCPI_ErrorClear(&scpi_context); |
| | | } |
| | | |
| | |
| | | TEST_INPUT("*IDN?;*IDN?;*IDN?;*IDN?\r\n", "MA,IN,0,VER;MA,IN,0,VER;MA,IN,0,VER;MA,IN,0,VER\r\n"); |
| | | output_buffer_clear(); |
| | | |
| | | TEST_INPUT("*IDN?;STUB\r\n", "MA,IN,0,VER\r\n"); |
| | | output_buffer_clear(); |
| | | |
| | | TEST_INPUT("*IDN?;*OPC;*IDN?\r\n", "MA,IN,0,VER;MA,IN,0,VER\r\n"); |
| | | output_buffer_clear(); |
| | | |
| | |
| | | TEST_INPUT("\r\n", "MA,IN,0,VER\r\n"); |
| | | output_buffer_clear(); |
| | | |
| | | /* Test empty command at the beggining */ |
| | | TEST_INPUT(";*IDN?\r\n", "MA,IN,0,VER\r\n"); |
| | | output_buffer_clear(); |
| | | |
| | | TEST_INPUT(";", ""); |
| | | TEST_INPUT("*IDN?\r\n", "MA,IN,0,VER\r\n"); |
| | | output_buffer_clear(); |
| | | |
| | | /* Test input "timeout" - input with length == 0 */ |
| | | TEST_INPUT("*IDN?", ""); |
| | | TEST_INPUT("", "MA,IN,0,VER\r\n"); |