pipx40_init

ViStatus pipx40_init (ViRsrc resourceName, ViBoolean IDQuery, ViBoolean resetDevice, ViPSession instrumentHandle);

Purpose

Initializes the card having the specified VISA resource name, claiming whatever system resources it requires.
The card is initialized in the following ways:
- the card is opened
- all output channels are cleared
- all output channels are unmasked

Parameters

Input
Name Type Description
resourceName ViRsrc

The VISA resource name of the card to be opened.
Valid Values:  Determined by the system's configuration and
card complement.
Example:       "PXI2::15::INSTR" specifies a card located on
logical PXI bus 2, at logical slot 15.
Note that the logical slot number differs from the physical slot number marked on the chassis, and when using MXI-3 logical bus numbers may be affected by the way in which chassis are interconnected.
Logical bus and slot numbers in a particular configuration can be discovered using the Pickering Test Panels, the PILMon terminal monitor, or NI Measurement & Automation Explorer (MAX).

IDQuery ViBoolean

Specifies if the card is to be queried to confirm it's ID when it is opened. This action is implicit in the driver's operation so the value of this control is ignored.

resetDevice ViBoolean

Specifies if the card is to be reset when it is opened. This action is obligatory for all cards so the value of this control is ignored.

Output
Name Type Description
instrumentHandle ViSession (passed by reference)

Instrument handle to be used in all subsequent calls to the instrument.

Return Value

Name Type Description
status ViStatus

A numeric code indicating the success or failure of the operation.
VI_SUCCESS = Successful operation.
Negative values are error codes and positive values are warnings.
To get a description of an error, pass the error code to pipx40_error_message.

References

Pickering Interfaces PXI VISA
Alphabetical Function Index
Hierarchical Function Index