GetTimeStampForMsg Method - neoVI API

This method calculates the timestamp for a message, based on the connected hardware type, and converts it to a usable variable.

int _stdcall icsneoGetTimeStampForMsg(void * hObject, icsSpyMessage *pMsg, icsSpyMessage *pMsg, double *pTimeStamp);

Parameters

hObject

[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);

Last updated