GtWaveInitialize 

Supported By

GX1110, GX1120

Applies To

Function Generator and Arbitrary Waveform Generator modes.

Purpose

Initializes the driver for the specified PXI slot using the HW device driver.

Syntax

GtWaveInitialize (nSlot, pnHandle, pnStatus)

Parameters

Name
Type
Comments
nSlot
SHORT
GX11X0 board slot number.
pnHandle
PSHORT
Returned Handle for a GX11X0 board.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The MArvin Test Solutions HW device driver is installed with the driver and is the default device driver. The function returns a handle that is used with other Counter functions to program the board. The function does not change any of the board settings.

The specified PXI slot number is displayed by the PXI/PCI Explorer applet that can be opened from the Windows Control Panel. You may also use the label on the chassis below the PXI slot where the board is installed. The function accepts two types of slot numbers:

Example

The following example initializes two GX1120 boards at slot 7 and 8.

 

SHORT nHandle1, nHandle2, nStatus;

GtWaveInitialize (7, &nHandle1, &nStatus);

GtWaveInitialize (8, &nHandle2, &nStatus);

if (nHandle1==0 || nHandle2==0)

{  printf(“Unable to Initialize the boards”)

   return;

}

 

See Also

GtWaveInitializeVisa, GtWaveGetErrorString, GtWaveReset