The te5200drv.dll functions, Sendcommand – Teledyne LeCroy PXA125 User Manual
Page 133
![background image](/manuals/353436/133/background.png)
User Manual PXA125
Programming Reference 4-15
The TE5200drv.dll
Functions
The TE5200drv.dll controls the complete functionality of the
instrument. You also have to use this dll to communicate with your
instrument. Communication with the instrument is done using SCPI
commands. The SCPI commands by themselves cannot program the
instrument but must be used with conjunction with the TE5200drv.dll.
There are two library functions that call this dll. These functions are
described in the following..
SendCommand
Purpose
Use this function to send SCPI commands to the instrument
C Syntax
INSTRUMENTSTATE SendCommand (int hInstr, char *inbuf)
Resource Classes
PXI, PCI
Parameters
Name
Description
hInstr
Instrument handle number. Must be out of a range of instruments that were found in the PXI baskets.
The numbers start at 0 (for first device) to n-1. This value is extracted using the TEComm.dll function
FindInstrument()
inbuf
Contains one or more SCPI commands. 256 characters limit the number of characters in this buffer.
The commands must be terminated by ‘\0’. If the inbuf contains queries, the returned strings will be
placed in the inbuf and also in this case, the size is limited by 256 characters.