NI-DCPower C Function Reference Help

niDCPower_revision_query

  • Updated2023-04-15
  • 1 minute(s) read

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

Purpose

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

Parameters

Input
Name Type Description
vi ViSession Identifies a particular instrument session. vi is obtained from the niDCPower_InitializeWithIndependentChannels function.
Output
Name Type Description
instrumentDriverRevision ViChar[] 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 ViChar[] Returns firmware revision information for the device you are using. The size of this array must be at least 256 bytes.

Return Value

Name Type Description
StatusViStatusReports the status of this operation. To obtain a text description of the status code, call the niDCPower_error_message function. To obtain additional information concerning the error condition, call the niDCPower_GetError function.

Log in to get a better experience