GxPsInitialize

Purpose

Initializes the driver for the power supply at the specified base address.

Syntax

GxPsInitialize (nSlotNumber, pnHandle, pnStatus)

Parameters

Name
Type
Description
nSlotNumber
SHORT
Denotes the PCI slot number for location of GX7400 board.
pnHandle
LPSHORT
Returned handle for the power supply. The handle is set to zero on error and <> 0 on success.
pnStatus
LPSHORT
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 for use 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:

The GxPsInitialize function verifies whether the power supply does or does not exist. However, the function does not have any effect on the power supply settings.

Example

The following example initializes the GX7400 at slot number 1.

 

SHORT nHandle, nStatus;

GxPsInitilize (1, &nHandle, &nStatus);

if ( nHandle==0)

{ printf("Unable to Initialize the power supply")

return;

}

 

See Also

GxPsGetErrorString, GxPsGetBoardSummary