Evaluate the AutomationView desktop suite free for 30 days. No credit card required. Claim trial key →

Tag: Python

search

Inside AutomationView: Leveraging the Python SDK for Automated Regression Testing of SFC Logic

AutomationView
%%{init: {'theme':'dark', 'themeVariables': { 'background': '#001c38' }}}%%
flowchart LR
    A["Git Commit"]:::bgBlue --> B["CI Pipeline"]:::bgGreen
    B --> C["AutomationView SDK"]:::bgBlue
    C --> D["SFC Execution"]:::bgRed
    D --> E["Test Report"]:::bgGreen

    classDef bgBlue fill:#2563eb,color:#ffffff,stroke-width:0px
    classDef bgGreen fill:#16a34a,color:#ffffff,stroke-width:0px
    classDef bgRed fill:#dc2626,color:#ffffff,stroke-width:0px
AutomationView Icon AutomationView
calendar_month

Inside AutomationView: Leveraging the Python SDK for Automated Regression Testing of SFC Logic

Automated regression testing is common in standard software engineering, but it remains notoriously difficult to implement in the industrial automation world. Engineers often test PLC code manually during the commissioning phase, discovering logic conflicts only when physical hardware is at risk. By leveraging the AutomationView Python SDK, control engineers can run automated regression testing on […]

Read Article arrow_forward

Inside AutomationView: Using Python to Procedurally Generate Complex SFC Sequences

AutomationView
%%{init: {'theme':'dark', 'themeVariables': { 'background': '#001c38' }}}%%
flowchart LR
    A["Python Script"]:::blue --> B["AutomationView API"]:::green
    B --> C["Generated SFC / Grafcet"]:::red
    classDef blue fill:#2563eb,stroke:#1e40af,color:#ffffff
    classDef green fill:#16a34a,stroke:#166534,color:#ffffff
    classDef red fill:#dc2626,stroke:#991b1b,color:#ffffff
AutomationView Icon AutomationView
calendar_month

Inside AutomationView: Using Python to Procedurally Generate Complex SFC Sequences

Generating large, highly parameterized SFC (Sequential Function Chart) sequences by hand can quickly become a bottleneck in PLC engineering. Inside AutomationView: Using Python to Procedurally Generate Complex SFC Sequences explores how to eliminate manual drafting by utilizing the AutomationView Python API to script logic programmatically. The Paradox of Manual Sequence Design Modern machine builders often […]

Read Article arrow_forward

How to Build Automated Unit Tests for PLC Sequences in AutomationView

AutomationView
%%{init: {'theme':'dark', 'themeVariables': { 'background': '#001c38' }}}%%
---
title: AutomationView Unit Testing Architecture
---
flowchart TD
    classDef test fill:#3b82f6,stroke:#2563eb,color:#ffffff
    classDef sfc fill:#10b981,stroke:#059669,color:#ffffff
    classDef report fill:#f59e0b,stroke:#d97706,color:#ffffff
    A["Python Test Runner (PyTest)"]:::test --> B["Mock I/O Variables"]:::test
    B --> C["Execute SFC Step/Transition"]:::sfc
    C --> D{"Assert Outputs == Expected"}
    D -- Pass --> E["Generate Coverage Report"]:::report
    D -- Fail --> F["Flag Error & Halt CI/CD"]:::report
AutomationView Icon AutomationView
calendar_month

How to Build Automated Unit Tests for PLC Sequences in AutomationView

In modern software engineering, pushing code to production without running automated unit tests is considered professional malpractice. Yet, in the industrial automation world, engineers routinely download thousands of lines of ladder logic into critical infrastructure relying solely on manual simulation and blind faith. AutomationView changes this paradigm entirely by introducing a native Python-based unit testing […]

Read Article arrow_forward