beautypg.com

Teledyne LeCroy PXA125 User Manual

Page 134

background image

User Manual PXA125

Programming Reference 4-16

Return Values

Completion Codes

Description

PCI_SUCCESS

Function executed without errors

PCI_INS_ALREADY_OPEN

Trying to establish new communication link while instrument has already been connected.

Error Codes

Description

PXI_COMMAND_ERROR

if value is 0x8000000, error is in SCPI syntax or other errors relating to instrument setability .SCPI
error list is given in the SCPI Commands reference.

If value is larger than 0x8000000, look for problems in the communication with the PXA125. Most
probable cause for such errors is not invoking the Arb Detector program after you power up your
computer.

Description

The SendCommand() function is the main function you’ll use for controlling instrument
functions and parameters. The PXA125 is using Standard Commands for Programmable
Instruments (SCPI). The following paragraphs describe SCPI syntax, structure and format. In
general, you can program the instrument by sending one command at a time. However, the
inbuf has a capacity to accept up to 256-character strings.

Using SCPI language should look familiar to programmers that use to program GPIB or VXI