LoggerGetTotalSamplingCount


Function

Get the total sampling count.

Function

Ret = LoggerGetTotalSamplingCount ( AppId , SamplingCount )

Parameters

AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] 

Specify Application ID retrieved by LoggerOpenApplication.

SamplingCount  [ VB.NET: UInteger ] [ C++: unsigned long * ] [ C#: out uint ]

Specify the address to store the total sampling count.

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.

The others (See also: Error Code List)

Initial Value

Nothing in particular.

Remarks

Gets the total sampling count.

The total sampling count is not subtracted even if the acquired data is obtained with LoggerGetSamplingData function (or LoggerGetSamplingDataBin function).
You can get the current sampling storage count with LoggerGetStoredSamplingCount function.

Example

Get the current sampling storage count.

VB.NET

Dim Ret As Integer
Dim SamplingCount As UInteger

Ret = LoggerGetTotalSamplingCount(AppId, SamplingCount)

 

C++

long Ret;
unsigned long SamplingCount;

Ret = LoggerGetGetTotalSamplingCount(AppId, &SamplingCount);

 

C#

int Ret;
uint SamplingCount;

Ret = logger.GetTotalSamplingCount(AppId, out SamplingCount);

 

See Also

LoggerGetStoredSamplingCount  LoggerGetSamplingData LoggerGetSamplingDataBin