1. Home
  2. /
  3. Ignition-perspective
  4. /
  5. Log Button Clicks

Log Button Clicks - Ignition-perspective Typing CST Test

Loading…

Log Button Clicks — Ignition-perspective Code

Append a log entry every time a button is clicked in Perspective.

from datetime import datetime
log = system.tag.readBlocking(["[default]ButtonLog"])[0].value
log += f"Clicked at {datetime.now()}\n"
system.tag.writeBlocking(["[default]ButtonLog"], [log])

Ignition-perspective Language Guide

Ignition Perspective is Inductive Automation’s modern, mobile-responsive visualization module for building industrial HMI, SCADA, and IIoT applications that run natively in web browsers and mobile devices using HTML5 and responsive UI components.

Primary Use Cases

  • ▸Web/mobile SCADA HMIs
  • ▸Real-time dashboards for plants and utilities
  • ▸IIoT dashboards with MQTT/Sparkplug B
  • ▸Industrial mobile apps for technicians
  • ▸Multi-site enterprise visualization

Notable Features

  • ▸True HTML5 rendering engine
  • ▸Mobile-responsive design with adaptive layouts
  • ▸Powerful binding/transformation logic
  • ▸Event-based Python scripting
  • ▸Built-in authentication & identity providers

Origin & Creator

Developed by Inductive Automation (USA), known for modular, web-based SCADA platforms.

Industrial Note

Extensively used in digital transformation projects, mobile SCADA deployments, remote plant monitoring, cloud-connected factories, and modern IIoT dashboards.

More Ignition-perspective Typing Exercises

Hello World Button ScriptStart/Stop Control with PerspectiveUpdate Numeric DisplayToggle Light IndicatorSlider Control for Motor SpeedDynamic Label UpdateSet Multiple TagsAlarm Acknowledge ButtonFetch and Display PLC Data

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher