beautypg.com

Getstatemessage – Teledyne LeCroy PXA125 User Manual

Page 132

background image

User Manual PXA125

Programming Reference 4-14

GetStateMessage

Purpose

Returns a string with a description of the error found

C Syntax

Void GetStateMessage (INSTRUMENT state, char *pMsg, int size)

Resource Classes

PXI, PCI

Parameters

Name

Description

state

An error code. The error list is available in TEComm.h.

pMsg

Returns a string identifying the error

Size

Assigned buffer size for the returned string

Return Values

None

Description

Use this function to detect errors while sending commands to the instrument. Errors could
generate from not being able to communicate with the devices, or from sending illegal SCPI
syntax. Setting conflicts are also common source for errors. The GetStateMessage() function
returns codes for errors. These codes are interpreted in the TEComm.h header file.