Get the sampling data.
Ret = LoggerGetSamplingDataBin ( AppId , SamplingTimes , Data )
AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ]
Specify Application ID retrieved by LoggerOpenApplication.
SamplingTimes [ VB.NET: UInteger ] [ C++: unsigned long * ] [ C#: out uint ]
Specify the address of the variable that stores the sampling count.
Return the sampling count that was actually read after the function was executed.
Data [ VB.NET: UInteger ] [ C++: unsigned long * ] [ C#: out uint[] ]
Specify the address of the array that contains the sampling data.
Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]
Definition |
Return code [Dec] |
Description |
LOGGER_ERR_SUCCESS |
0 |
Normal completed |
LOGGER_ERR_INVALID_ID |
10010 |
Invalid AppId was specified. |
LOGGER_ERR_SAMPLINGDATA_TIME |
20045 |
Pointer for sampling count of data to be acquired is invalid. |
LOGGER_ERR_SAMPLINGDATA_MEMORY |
20047 |
Memory is empty. |
LOGGER_ERR_SAMPLINGTIMES_ADJUST |
20057 |
An attempt was made to acquire more data than the number of collected data. |
The others (See also: Error Code List)
Nothing in particular.
Get the sampling data.
The conversion data are returned in binary value.
Get 1000 collections.
VB.NET |
Dim Ret As Integer Ret = LoggerGetSamplingData(AppId, SamplingTimes, Data)
|
C++ |
long Ret; unsigned long Data[1000]; SamplingTimes = 1000; Ret = LoggerGetSamplingData(AppId, &SamplingTimes, &Data[0]);
|
C# |
int Ret; uint[] Data = new uint[1000]; SamplingTimes = 1000; Ret = logger.GetSamplingData(AppId, out SamplingTimes, out Data);
|