Returns the revision information of NI-DCPower and the device firmware.

Syntax

ViStatus _VI_FUNC niDCPower_revision_query(ViSession vi, ViChar instrumentDriverRevision[IVI_MAX_MESSAGE_BUF_SIZE], ViChar firmwareRevision[IVI_MAX_MESSAGE_BUF_SIZE])

Parameters

NameDirectionTypeDescription
vi[in]ViSession

Identifies a particular instrument session. vi is obtained from the niDCPower_InitializeWithIndependentChannels function.

instrumentDriverRevision[out]ViChar[IVI_MAX_MESSAGE_BUF_SIZE]

Returns the driver revision information for NI-DCPower.

In multi-instrument sessions, this function returns an error if any instruments have different firmware revisions. In this case, instead of using this function, read the NIDCPOWER_ATTR_INSTRUMENT_FIRMWARE_REVISION attribute for the instrument you specify.

firmwareRevision[out]ViChar[IVI_MAX_MESSAGE_BUF_SIZE]

Returns firmware revision information for the device you are using. The size of this array must be at least 256 bytes.

Returns

Reports the status of this operation. To obtain a text description of the status code, call niDCPower_error_message. To obtain additional information concerning the error condition, call niDCPower_GetError. The general meaning of the status code is as follows:

Value

Meaning

0

Success

Positive Values

Warnings

Negative Values

Errors