Documentation

xPCTgScGetGrid

Get status of grid line for particular scope

Prototype

int xPCTgScGetGrid(int port, int scNum);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

scNum

Enter the scope number.

Return

Returns the status of the grid for a scope of type SCTYPE_TARGET. If the function detects an error, it returns -1.

Description

The xPCTgScGetGrid function gets the state of the grid lines for scope scNum (which must be of type SCTYPE_TARGET). A return value of 1 implies that the grid is on, while 0 implies that the grid is off. When the scope mode is set to SCMODE_NUMERICAL, the grid is not drawn even when the grid mode is set to 1.

Tip

Introduced before R2006a

Was this topic helpful?