CalPwrMeterInitialize

Purpose

Initializes the driver for the instrument at the specified address or VISA resource.

Syntax

CalPwrMeterInitialize (sAddress, plStatus)

Parameters

Name
Type
Comments
sAddress
STR
Address of Power Supply.
plStatus
PLONG
Returned status: 0 on success, negative number on failure.

Comments

The function verifies and establishes communication with the instrument at the specified address information. The address information can be PXI, GPIB, USB, WinSock or VISA resource string. This address string format is starting by the address type followed by a column and the address:  PXI | GPIB | WinSock | USB | Com | VISA : Address . The specifics of the Address string characteristics can be found in Writing a Standard Drivertopic in step 5. The function does not change any of the board settings.

The returned handle phHandle is used to identify the specified instrument with other driver functions.

Example

The following example initializes two Power Meters with VISA resource strings: USB0::0x2A8D::0x8018::MY55160016::INSTR and USB0::0x2A8D::0x8018::MY55160018::INSTR.

 

SHORT lStatus;

 

CalPwrMeterInitialize (“VISA:USB0::0x2A8D::0x8018::MY55160016::INSTR”, &lStatus);

CalPwrMeterInitialize (“VISA:USB0::0x2A8D::0x8018::MY55160018::INSTR”, &lStatus);

 

See Also

CalPwrMeterReset, CalPwrMeterGetError