DioPause

Applies To

GC5050, GX5050, GX5055, GX5150, GX5280, GX5290, GX5290e, GX5295

Purpose

Changes the Master board’s state from RUN to PAUSE.

Syntax

DioPause (nMasterHandle, pnStatus)

Parameters

Name

Type

Comments

nMasterHandle

SHORT

Master board handle.

pnStatus

PSHORT

Returned status: 0 on success, negative number on failure.

Comments

The board must be in the RUN state; otherwise this function returns an error. This function is useful for debugging.

Example

The following example set the board state to PAUSE:

 

SHORT nStatus;

DioPause (nMasterHandle, &nStatus);

 

See Also

DioHalt, DioArm, DioStep, DioReadProgramCounter, DioSetupTriggerXEventSource