This section contains examples for items we've identified as "common" tasks: undertakings that many users are looking to utilize when first starting out with a specific module or feature in Ignition. Additionally, this section aims to demystify some of the more complex or abstract tasks that our users may encounter.
The examples in this section are self-contained explanations that may touch upon many other areas of Ignition. While they are typically focused on a single goal or end result, they can easily be expanded or modified after the fact. In essence, they serve as a great starting point for users new to Ignition, as well as experienced users that need to get acquainted with a new or unfamiliar feature.
Below is a list of common tasks related to this section of the manual.
Reading and Writing to Tags
There are simple interfaces in Ignition that allow you to easily write to a Tag on some Event, and Reading can be as simple as creating a Tag binding. Sometimes, however, the built-in approaches can be too simplistic or limiting. The Reading and Writing to Tags page details how to better interact with Tags from scripting.
Importing and Exporting a CSV
CSV files are used by many software programs to export data so that other systems may utilize the information contained within. The Importing and Exporting a CSV page demonstrates how to both import a CSV into Ignition, as well as export data from Ignition into a CSV.
Reading a Cell from a Table
Once data is populated into a Table component, it's useful to know how to read and extract a data from a cell in a Table, particularly if users can select a row in a Table. The Read a Cell from a Table page has some good examples for retrieving data from a single cell and multiple cells in a Table.
Adding a Delay to a Script
In some cases, being able to halt execution of a script can be helpful while waiting for some other event to occur. Adding a Delay to a Script page details some common approaches, as well as approaches to avoid.
Export Tag Historian to CSV
The Tag Historian Data can be great, but it's sometimes difficult to view it outside of Ignition. The Export Tag Historian to CSV page details how to pull out a subset of Tag history data and export it to a CSV file.
Parsing XML with the Etree Library
XML files are a great way to share information between two systems, but parsing them can seem like a daunting task. Parsing XML with the Etree Library shows how to use Python's Etree Library to read through an XML document.