Public Declare Function icsneoGetTimeStampForMsg Lib “icsneo40.dll” (ByVal hObject As IntPtr, ByRef pMsg As icsSpyMessage, ByRef pTimeStamp As Double) As Int32
[in] Specifies the driver object created by OpenNeoDevice.
pMsg
[in] The message to be used for calculating timestamp.
pTimeStamp
[out] The calculated timestamp.
Return Values
Returns 1 if successful, 0 if an error occurred. 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
Different models of neoVI devices have different time resolutions. This function uses the proper formula to calculate a timestamp based on the connected device type.
Examples
int hObject;
int iResult;
double dTimeStamp;
icsSpyMessage Msg;
iResult = icsneoGetTimeStampForMsg(m_hObject, &Msg, &dTimeStamp);
Dim iResult As Integer
Dim dTimeStamp As Double
icsSpyMessage Msg;
iResult = icsneoGetTimeStampForMsg(m_hObject, Msg, dTimeStamp)
int iResult;long lTimeStamp;icsSpyMessage Msg;iResult =icsNeoDll.icsneoGetTimeStampForMsg(m_hObject, ref Msg, ref dTimeStamp);