Returns the date and time the specified type of compensation data for LCR measurements was most recently generated.

Syntax

ViStatus _VI_FUNC niDCPower_GetLCRCompensationLastDateAndTime(ViSession vi, ViConstString channelName, ViInt32 compensationType, ViInt32 *year, ViInt32 *month, ViInt32 *day, ViInt32 *hour, ViInt32 *minute)

Remarks

The time returned is 24-hour (military) local time; for example, if the selected type of compensation data was generated at 2:30 PM, this VI returns 14 for hours and 30 for minutes.

Note

This function is not supported on all devices. Refer to Supported Functions by Device for more information about supported devices.

Parameters

NameDirectionTypeDescription
vi[in]ViSession

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

channelName[in]ViConstString

Specifies the channel(s) to use. Specify the channel(s) using the form PXI1Slot3/0,PXI1Slot3/2-3,PXI1Slot4/2-3 or PXI1Slot3/0,PXI1Slot3/2:3,PXI1Slot4/2:3, where PXI1Slot3 and PXI1Slot4 are instrument resource names and 0, 2, and 3 are channels.

If you pass "" for this control, all channels in the session are used.

compensationType[in]ViInt32

Specifies the type of compensation for LCR measurements.

Defined Values:

Name

Value

Description

NIDCPOWER_VAL_OPEN_COMPENSATION

1130 (0x46a)

Returns the date and time that open LCR compensation data was most recently generated.

NIDCPOWER_VAL_SHORT_COMPENSATION

1131 (0x46b)

Returns the date and time that short LCR compensation data was most recently generated.

NIDCPOWER_VAL_LOAD_COMPENSATION

1132 (0x46c)

Returns the date and time that load LCR compensation data was most recently generated.

NIDCPOWER_VAL_OPEN_CUSTOM_CABLE_COMPENSATION

1133 (0x46d)

Returns the date and time that open custom cable compensation data was most recently generated.

NIDCPOWER_VAL_SHORT_CUSTOM_CABLE_COMPENSATION

1134 (0x46e)

Returns the date and time that short custom cable compensation data was most recently generated.

year[out]ViInt32 *

Returns the year the specific LCR compensationType was performed on the device.

month[out]ViInt32 *

Returns the month the specific LCR compensationType was performed on the device.

day[out]ViInt32 *

Returns the day the specific LCR compensationType was performed on the device.

hour[out]ViInt32 *

Returns the hour the specific LCR compensationType was performed on the device.

minute[out]ViInt32 *

Returns the minute the specific LCR compensationType was performed on the device.

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