beautypg.com

Sendblock – Teledyne LeCroy PXA125 User Manual

Page 136

background image

User Manual PXA125

Programming Reference 4-18

SendBlock

Purpose

Use this function to send arbitrary waveform coordinates as well as FM arbitrary waveform
coordinates to the instrument

C Syntax

INSTRUMENTSTATE SendBlock (int hInstr, WORD mode, char *pFileName, void *pWave,
DWORD size)

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()

pFileName

Use this parameter to define if the waveform coordinates are located in an external file or reside
inside the program. “NULL” define resident coordinates. “file_name>” define name and path of
external file. You can use complete path if file location is outside the working folder.

pWave

Pointer for memory space where the coordinates of the arbitrary waveform can be found. If you are
using external files, then use NULL for this parameter.

size

If you are using an external file for waveform coordinates, then leave this parameter 0. If you are
using resident coordinates, this parameter specifies the number of bytes at the pointer location that
are used as coordinates for the arbitrary waveform. For arbitrary waveforms, each data point requires