Device Types

Processing Unit - - instructions
💽 Disk - - instructions
🕑 Clock - - instructions
🖥 Screen - - instructions

Available Devices

⬤ 🕑 Clock {{device.name}} create
Settings:
Name
range
resolution
Sockets:
Server - Clock - {{device.name}}
⬤ 💽 Disk {{device.name}} create download
Settings:
Name
entries
entrySize
Sockets:
Server - Disk - {{device.name}}
⬤ Processing Unit {{device.name}} start
Settings:
Name
Namespace
Version
Function prefix
Sockets:
  • Array:
⬤ 🖥 Screen - {{device.name}} - create
Settings:
Name
width
height
density
Sockets:
Server - Screen - {{device.name}}

Unconnected Sockets

  • {{socket.device}} {{name}}

Script

-

Examples

Test Clock:

Add a clock, create it and run the commands below.

clockspecs("c1")
time("c1", -2)
time("c1", 2)
Test Disk:

Add a disk, create it and run the commands below.

data = [91, 92, 93, 94, 95, 96, 97, 98]
write("d1", 2, data)
read("d1", 2, data)
data.data
Start PU and test:

Load the following in "script", start the PU and run the command below.

[
  {
    "type": "pu",
    "name": "p1",
    "program": {
      "name": "Ping",
      "namespace": "no.inductive.libraries",
      "version": "0.1.2",
      "function": "Ping"
    },
    "sockets": [
      {
        "type": "server",
        "name": "socket1",
        "device": "PU"
      }
    ],
    "settings": []
  }
]

call("socket1", "ping");
Test screen:

Load the following in "script", create the screen, start the PU, show the screen to see the animation.

[
  {
    "type": "screen",
    "name": "s1",
    "width": 320,
    "height": 200,
    "density": 1
  },
  {
    "type": "pu",
    "name": "p1",
    "program": {
      "name": "TestAnimation",
      "namespace": "no.inductive.libraries",
      "version": "0.1.4",
      "function": "TestAnimation"
    },
    "sockets": [
      {
        "type": "client",
        "name": "s1",
        "device": "Screen"
      }
    ],
    "settings": [
      {
        "key": "w",
        "value": "20"
      },
      {
        "key": "h",
        "value": "20"
      },
      {
        "key": "dx",
        "value": "4"
      },
      {
        "key": "dy",
        "value": "4"
      }
    ]
  }
]
Text Display:

Load the following in "script", create the screen, start the PU, and run the command to print Hello, World! onto the text display.

[
  {
    "type": "screen",
    "name": "s1",
    "width": 640,
    "height": 480,
    "density": 1
  },
  {
    "type": "pu",
    "name": "p1",
    "program": {
      "name": "TextDisplay",
      "namespace": "no.inductive.idea10.programs",
      "version": "0.1.2",
      "function": "TextDisplay"
    },
    "sockets": [
      {
        "type": "client",
        "name": "s1",
        "sockets": [],
        "device": "Screen",
        "array": false
      },
      {
        "type": "server",
        "name": "c1",
        "sockets": [],
        "device": "PU",
        "array": false
      }
    ],
    "settings": []
  }
]

call("c1", '{"command": "ConsoleWrite", "text": "Hello, world!"}');
Contact Information

We would be more than happy to help you. Our opening hours are 9–15 (CET).

✉ [email protected]

📞 (+47) 93 68 22 77

Nils Bays vei 50, 0876 Oslo, Norway

Copyright © 2018-24 progsbase.com by Inductive AS.