Documentation

xPCTgScGetMode

Get scope mode for displaying signals

Prototype

int xPCTgScGetMode(int port, int scNum);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

scNum

Enter the scope number.

Return

Returns the value corresponding to the scope mode. The possible values are

  • SCMODE_NUMERICAL = 0

  • SCMODE_REDRAW = 1

  • SCMODE_SLIDING = 2 will be removed in a future release. It behaves like value SCMODE_ROLLING = 3.

  • SCMODE_ROLLING = 3

If this function detects an error, it returns -1.

Description

The xPCTgScGetMode function gets the mode of scope scNum, which must be of type SCTYPE_TARGET. The mode is one of SCMODE_NUMERICAL, SCMODE_REDRAW, and SCMODE_ROLLING. Use the xPCGetScopes function to get a list of scopes.

Introduced before R2006a

Was this topic helpful?