GxSmuInitialize

Applies To

GX3104, GX3116e

Purpose

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

Syntax

GxSmuInitialize (nSlot, pnHandle, pnStatus)

Parameters

Name
Type
Description
nSlot
SHORT
SMU board slot number. See Comments.
pnHandle
PSTR
Returned Handle for a SMU 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 for use with other SMU 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 the board at PXI chassis 2 slot 7.

 

SHORT nHandle, nStatus;

GxSmuInitialize(0x207, &nHandle, &nStatus);

if (nHandle==0)

{

   printf("Unable to Initialize the board")

   return;

}

 

See Also

GxSmuInitializeVisa, GxSmuGetErrorString, GxSmuReset