smc_refresh_ex

Description

Obtains a sampling of data for all views on a connection.

Syntax

SMC_RETURN_CODE smc_refresh_ex
 (SMC_CONNECT_ID  clientId,
  SMC_SIZET       step)

Parameters

clientId

identifies the connection.

step

during playback in a Historical Server connection, allows skipping ahead a specified number of samples. Ordinarily, on playback, step is +1 to retrieve the next sample (negative step values are not allowed).

Does not apply for live connections; use SMC_UNUSED.

Returns

Return value

Indicates

SMC_RET_SUCCESS

Function succeeded.

SMC_RET_FAILURE

Function failed.

SMC_RET_INVALID_CONNECT

Connection does not exist.

Examples

Example 1

This example assumes that:

Usage


Valid server modes

Mode

Availability

SMC_SERVER_M_LIVE

Yes

SMC_SERVER_M_HISTORICAL

Yes (for playback)


Errors

Error

Indicates

SMC_RET_INVALID_API_FUNCTION

Invalid use of obsolete and replacement functions in program.

SMC_RET_INVALID_SVR_MODE

Invalid server mode.

See also

smc_connect_ex