Jan Breuer
2013-03-13 52c6a140a8062814367c28e7dbc31ac216e30919
examples/common/scpi-def.c
@@ -47,15 +47,19 @@
    // read first parameter if present
    if (SCPI_ParamNumber(context, &param1, false)) {
        SCPI_NumberToStr(context, &param1, bf, 15);
        fprintf(stderr, "\tP1=%s\r\n", bf);
    }
    // read second paraeter if present
    if (SCPI_ParamNumber(context, &param2, false)) {
        SCPI_NumberToStr(context, &param2, bf, 15);
        fprintf(stderr, "\tP2=%s\r\n", bf);
    }
    SCPI_NumberToStr(context, &param1, bf, 15);
    fprintf(stderr, "\tP1=%s\r\n", bf);
    SCPI_NumberToStr(context, &param2, bf, 15);
    fprintf(stderr, "\tP2=%s\r\n", bf);
    SCPI_ResultDouble(context, 0);
    
@@ -108,6 +112,8 @@
    {.pattern = "MEASure:FRESistance?", .callback = SCPI_StubQ,},
    {.pattern = "MEASure:FREQuency?", .callback = SCPI_StubQ,},
    {.pattern = "MEASure:PERiod?", .callback = SCPI_StubQ,},
    {.pattern = "SYSTem:COMMunication:TCPIP:CONTROL?", .callback = SCPI_SystemCommTcpipControlQ,},
    SCPI_CMD_LIST_END
};
@@ -117,7 +123,8 @@
    .error = SCPI_Error,
    .reset = SCPI_Reset,
    .test = SCPI_Test,
    .srq = SCPI_Srq,
    .control = SCPI_Control,
    .flush = SCPI_Flush,
};
#define SCPI_INPUT_BUFFER_LENGTH 256