LoggerGetStoredSamplingCount


Function

Get the current sampling storage count.

Function

Ret = LoggerGetStoredSamplingCount ( AppId , StoredSamplingCount )

Parameters

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

Specify Application ID retrieved by LoggerOpenApplication.

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

Specify the address for storing the current sampling storage 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.

The others (See also: Error Code List)

Initial Value

Nothing in particular.

Remarks

Get the current sampling storage count.

This function can be used in combination with LoggerGetSamplingData function (or LoggerGetSamplingDataBin function) to get C-LOGGER acquired data in a batch operation.
The current sampling storage count is subtracted by the number of acquired data items.

You can get  the total sampling count with LoggerGetTotalSamplingCount function.
The total sampling count is not subtracted even if the acquired data is obtained.

Example

Get the current sampling storage count.

VB.NET

Dim Ret As Integer
Dim StoredSamplingCount As UInteger

Ret = LoggerGetStoredSamplingCount(AppId, StoredSamplingCount)

 

C++

long Ret;
unsigned long StoredSamplingCount;

Ret = LoggerGetStoredSamplingCount(AppId, &StoredSamplingCount);

 

C#

int Ret;
uint StoredSamplingCount;

Ret = logger.GetStoredSamplingCount(AppId, out StoredSamplingCount);

 

See Also

LoggerGetTotalSamplingCount LoggerGetSamplingData LoggerGetSamplingDataBin