Beispiel #1
0
int scpi_impl_error(scpi_t * context, int_fast16_t err)
{
    (void) context;

    fprintf(stderr, "**ERROR: %d, \"%s\"\r\n", (int32_t) err, SCPI_ErrorTranslate(err));
    return 0;
}
Beispiel #2
0
/**
 * SYSTem:ERRor[:NEXT]?
 * @param context
 * @return 
 */
scpi_result_t SCPI_SystemErrorNextQ(scpi_t * context) {
    INT16 err = SCPI_ErrorPop(context);

    SCPI_ResultInt32(context, err);
    SCPI_ResultText(context, SCPI_ErrorTranslate(err));

    return SCPI_RES_OK;
}
Beispiel #3
0
int SCPI_Error(scpi_t * context, int_fast16_t err) {
    (void) context;
    // BEEP
    iprintf("**ERROR: %ld, \"%s\"\r\n", (int32_t) err, SCPI_ErrorTranslate(err));
    return 0;
}
Beispiel #4
0
/**
 * Report a SCPI error. Not all SCPI interfaces report this; some require
 * polling. This may be a no-op in that case.
 * \param context   Active SCPI context
 * \param err       SCPI error number
 * \return  zero
 */
int SCPI_Error (scpi_t *context, int_fast16_t err) {
    (void) context;
    fprintf(stderr, "**ERROR: %" PRIdFAST16 ", \"%s\"\r\n", err, SCPI_ErrorTranslate(err));
    return 0;
}