Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



The Ignition scripting API, which is available under the module name "system", is full of functions that are useful when designing projects in Ignition. From running database queries, manipulating components, to exporting data, scripting functions can help. Some of these functions only work in the Gateway scope, and other only work in the Client scope, while the rest will work in any scope.

Additional information on scripting Ignition can be found in the Scripting section.

Editor_notes

Page Tree Search


In this section, we cover all of the built in scripting functions available inside of Ignition. Each page will have a banner at the top that looks like this:

Scroll html ignore
Iulink
URLhttps://inductiveuniversity.com/video/system-library
NameSystem Library


Scripting_function


This lets you know that you are looking at a function for the Python scripting language.

System Functions

You can see below there are many different categories of system functions available for your use. For an overview and syntax scripting, refer to the Python Scripting section.

Caution_friendly

Many built-in objects, such as the system library, are mutable objects. Mutable objects can be overridden within a script. For example:

Code Block
system = "foo"

Doing so will prevent later lines in the script from using methods on the object. While this is expected behavior in Python, it is strongly advised to not override built-in objects. 

Functions by Scope

Expand
titleGateway-scoped functions


Content by Label
showLabelsfalse
max500
showSpacefalse
sorttitle
titleGateway Scope
excludeCurrenttrue
cqllabel = "gateway" and ancestor = currentContent()

Expand
titleVision-scoped functions

Content by Label
showLabelsfalse
max500
showSpacefalse
sorttitle
titleVision Scope
excludeCurrenttrue
cqllabel = "vision" and ancestor = currentContent()

Expand
titlePerspective-scoped functions

Content by Label
showLabelsfalse
max500
showSpacefalse
sorttitle
titlePerspective Scope
excludeCurrenttrue
cqllabel = "perspective" and ancestor = currentContent()

system.alarm

Page Tree
rootsystem.alarm

system.bacnet

Page Tree
rootsystem.bacnet
startDepth2

system.dataset

Page Tree
rootsystem.dataset
startDepth2

system.date

Page Tree
rootsystem.date

system.db

Page Tree
rootsystem.db

system.device

Page Tree
rootsystem.device

system.dnp3

Page Tree
rootsystem.dnp3

system.eam

Page Tree
rootsystem.eam

system.file

Page Tree
rootsystem.file
startDepth2

system.groups 

Page Tree
rootsystem.groups
startDepth2

system.gui

Page Tree
rootsystem.gui

system.math

Page Tree
rootsystem.math

system.nav

Page Tree
rootsystem.nav

system.net

Page Tree
rootsystem.net

system.opc

Page Tree
rootsystem.opc

system.opchda

Page Tree
rootsystem.opchda

system.opcua

Page Tree
rootsystem.opcua

system.perspective

Page Tree
rootsystem.perspective

system.print

Page Tree
rootsystem.print

system.project

Page Tree
rootsystem.project

system.report

Page Tree
rootsystem.report

system.roster

Page Tree
rootsystem.roster
startDepth2

system.secsgem

Page Tree
rootsystem.secsgem
startDepth2

system.security

Page Tree
rootsystem.security

system.serial

Page Tree
rootsystem.serial

system.sfc

Page Tree
rootsystem.sfc

system.tag

Page Tree
rootsystem.tag

system.twilio

Page Tree
rootsystem.twilio

system.user

Page Tree
rootsystem.user

system.util

Page Tree
rootsystem.util