niDCPower_GetLCRCompensationLastDateAndTime
- Updated2025-10-06
- 2 minute(s) read
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.
This function is not supported on all devices. Refer to Supported Functions by Device for more information about supported devices.
Parameters
| Name | Direction | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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:
| ||||||||||||||||||
| 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 |