For the complete documentation index, see llms.txt. This page is also available as Markdown.

GetRTC Method - neoVI API

This method returns the value of the real-time clock on a connected neoVI device.

int _stdcall icsneoGetRTC(void * hObject, icsSpyTime *pTime);
Public Declare Function icsneoGetRTC Lib “icsneo40.dll” (ByVal hObject As IntPtr, ByRef pTime As icsSpyTime) As Int32
[DllImport(icsneo40.dll)] public static extern Int32 icsneoGetRTC(IntPtr hObject, ref icsSpyTime pTime);

Parameters

hObject

[in] Specifies the driver object created by OpenNeoDevice.

pTime

[in] The address of a icsSpyTime structure. This structure is defined in the file icsSpyDataCommon.h

Return Values

1 if the function succeeded. 0 if it failed for any reason. GetLastAPIError must be called to obtain the specific error. The errors that can be generated by this function are:

NEOVI_ERROR_DLL_NEOVI_NO_RESPONSE = 75

Remarks

Examples

long lResult;
icsSpyTime icsTime;

//Call for RTC
lResult = icsneoGetRTC(m_hObject, &icsTime);
long lResult;
icsSpyTime icsTime;

//Call for RTC
lResult = icsNeoDll.icsneoGetRTC(m_hObject,ref icsTime);
Dim lResult As Int32
Dim icsTime As New icsSpyTime

'//Call for RTC
lResult = icsneoGetRTC(m_hObject, icsTime)

Last updated