GetRTC Method - intrepidcs API
C/C++ declare - VB declare - VB.NET declare - C# declare - Parameters - Return Values - Remarks - C/C++ example - VB example - VB.NET example - C# example

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

C/C++ Declare

int _stdcall icsneoGetRTC(int hObjecticsSpyTime *pTime);

Visual Basic Declare

Public
Declare Function icsneoGetRTC Lib "icsneo40.dll" (ByVal hObject As Long, ByRef pTime As icsSpyTime) As Long

Visual Basic .NET Declare

Public Declare Function icsneoGetRTC Lib "icsneo40.dll" (ByVal hObject As Int32, ByRef pTime As icsSpyTime) As Int32

C# Declare

[DllImport("icsneo40.dll")]
public static extern Int32 icsneoGetRTC(Int32 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

Visual Basic Example



C/C++ Example:



C# Example:



Visual Basic .NET Example:

intrepidcs API Documentation - (C) Copyright 2000-2012 Intrepid Control Systems, Inc.  (www.intrepidcs.com)

Last Updated : Wednesday, August 05, 2009