inSCADA
EN
EN
  • Introduction
  • Getting started
  • User Interface
    • Home
    • Development
      • Projects
      • Connections
      • Devices
      • Animations
        • Get
        • Color
        • Rotate
        • Move
        • Opacity
        • Bar
        • Click
        • Tooltip
      • Alarm Groups
      • Alarms
      • Scripts
      • Expressions
      • Variables
      • Reports
      • Processes
      • Mail
      • Import/Export
    • Wizards
      • Gas Metering
      • HPP Unit
      • Device Library
    • Visiualisation
    • Processes
    • Control Panel
    • Project Map
    • Variable History
    • Alarm History
    • Alarm Monitor
    • Trend Graphics
    • Reports
    • Logs
    • Auth Logs
    • Jobs
    • Users
    • Help
    • About
    • License
  • Mimic Design
  • Communication Protocols
    • MODBUS
      • Modbus TCP
      • Modbus UDP
      • Modbus RTU Over TCP
      • Modbus TCP Server
      • Modbus RTU Slave Over TCP
    • DNP3
      • DNP3 Master
      • DNP3 Outstation
    • PROFINET
    • IEC-104
    • SNMP
    • OPC
      • OPC UA Client
  • Programing
    • APIs
      • Variable Functions
      • Connection Functions
      • Project Functions
      • Alarm Functions
      • Script Functions
      • In-Memory DB Functions
      • System Functions
      • User Functions
      • Date-Time Functions
      • String Functions
      • Notification Functions
      • Confirmation Functions
      • Database Functions
      • Other Functions
  • Database
  • Usefull Features
  • Update Logs
  • Architectures and Applications
  • Development Roadmap
  • Migration to inSCADA
  • Licensing Policies
  • FAQ
  • Screenshots
  • Auxiliary Tools
  • Installations
    • Requirements
    • Installation on Linux
Powered by GitBook
On this page
  • Get System Requests
  • Delete System Requests
  • Get System Status
  • Shutdown System
  • Restart System
  1. Programing
  2. APIs

System Functions

System functions are used to access the hardware resources on which the inSCADA Platform is running. It is also used to shut down, restart, and manage the list of requests made from the system.

Get System Requests

ins.getSystemRequests()

It receives a list of requests received to the system.

Return Value: Returns a list of requests to the system as an array.

Syntax

var requests=ins.getSystemRequests();
var i=0;
if (requests!==null) { return -1}; 
if (requests.length>0) {      // check new a req

    for (i=0;i<requests.length;i++) {
    
        switch (requests[i].type) {
            case "warm_restart":
            // to do
            ins.deleteSystemRequests(requests[i]);
            break;
            
            case "cold_restart":
            // to do
            ins.deleteSystemRequests(requests[i]);
            break;
            
            case "set_date_time":
            // to do
            ins.deleteSystemRequests(requests[i]);
            break;
            
            default:
            // undefined System Requests
            ins.deleteSystemRequests(requests[i]);
            break;
        }
    }
}

Delete System Requests

ins.deleteSystemRequests(object requests)

Deletes a request to the system.

object requests: The request object in the list.

Syntax

var requests=ins.getSystemRequests();
var i=0;
if (requests!==null) { return -1}; 
if (requests.length>0) {      // check new a req

    for (i=0;i<requests.length;i++) {
    
        switch (requests[i].type) {
            case "warm_restart":
            // to do
            ins.deleteSystemRequests(requests[i]);
            break;
            
            case "cold_restart":
            // to do
            ins.deleteSystemRequests(requests[i]);
            break;
            
            case "set_date_time":
            // to do
            ins.deleteSystemRequests(requests[i]);
            break;
            
            default:
            // undefined System Requests
            ins.deleteSystemRequests(requests[i]);
            break;
        }
    }
}

Get System Status

ins.getSystemStats()

It gives information about the system resources and usage amounts.

Return Value: Does not return any value.

Syntax

var system=ins.getSystemStats();
return system;

Shutdown System

ins.shutdown()

Turns off the system.

Return Value: Does not return any value.

Syntax

ins.shutdown();

Restart System

ins.restart()

Restarts the system.

Return Value: Does not return any value.

Syntax

ins.restart();
PreviousIn-Memory DB FunctionsNextUser Functions

Last updated 5 years ago