Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Edge HMI

IsTaskRunning

  • Last UpdatedOct 29, 2026
  • 1 minute read

IsTaskRunning is a built-in function that checks whether a specified execution task or runtime module is currently running.

Function

Group

Execution

String Exp.

Windows

Windows Embedded

IoT View

Thin Clients

Mobile Access

IsTaskRunning

Module Activity

Synchronous

Yes

Supported

Supported

Not supported

Executed on Server

Executed on Server

Syntax

IsTaskRunning(strTask)

IsTaskRunning ( { strTask | " { BGTask | Core | DBSpy | XDB | Driverdrivername | LogWin | MobileAccess | OPCClient | OPCUAClient | OPCUAServer | OPCXMLClient | OPCServer | TCPClient | TCPServer | Viewer } " } )

strTask

The name of the task or module to check (must be one of the following):

Value

Description

BGTask

Background Task

Core

Core Runtime

DBSpy

Watch

XDB

Database/ERP

Driverdrivername

Communication Driver (for the specified driver)

LogWin

LogWin

MobileAccess

Mobile Access

OPCUAClient

OPC UA Client

OPCUAServer

OPC UA Server

OPCServer

OPC DA Server

TCPClient

TCP/IP Client

TCPServer

TCP/IP Server

Viewer

Viewer

For more information, see Runtime Tasks.

Return value

This function returns one of the following possible values:

Value

Description

0

Specified task is not running.

1

Specified task is running.

Examples

Check the MOTCP driver:

IsTaskRunning("DriverMOTCP")

Check the Viewer module, which is used to view the local project runtime:

IsTaskRunning("Viewer")

In This Topic