LoggerGetSamplingDataBin


Function

Get the sampling data.

Function

Ret = LoggerGetSamplingDataBin ( AppId , SamplingTimes , Data )

Parameters

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.

Return Value

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)

Initial Value

Nothing in particular.

Remarks

Get the sampling data.
The conversion data are returned in binary value.

Example

Get 1000 collections.

VB.NET

Dim Ret As Integer
Dim SamplingTimes As UInteger
Dim Data(1000) As UInteger

Ret = LoggerGetSamplingData(AppId, SamplingTimes, Data)

 

C++

long Ret;
unsigned long SamplingTimes;

unsigned long Data[1000];

SamplingTimes = 1000;

Ret = LoggerGetSamplingData(AppId, &SamplingTimes, &Data[0]);

 

C#

int Ret;
uint SamplingTimes;

uint[] Data = new uint[1000];

SamplingTimes = 1000;

Ret = logger.GetSamplingData(AppId, out SamplingTimes, out Data);

 

See Also

LoggerGetSamplingData