Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
blocks:app-note:isaac [2024-01-22 12:50]
mattias
blocks:app-note:isaac [2024-01-22 13:33]
mattias
Line 8: Line 8:
  
 ===Make the driver available to the server=== ===Make the driver available to the server===
-Copy the driver files Isaac.js (driver) and Issac.ts (source code file) from the drivers-archive to the drivers directory in PIXILAB-Block-root/script. +Copy the driver files Isaac.js (driver) and Isaac.ts (source code file) from the drivers-archive to the drivers directory in PIXILAB-Block-root/script. 
  
-===Configure the driver using driver options=== +===Configure the driver === 
-Open the blocks editor and add the Issac system as a Network device.  In the driver options field we must add some configuration using JSON. +Open the blocks editor and add the Issac system as a Network device.  In the driver //custom options// field we must add some configuration using JSON syntax
 A typical example will look like this:  A typical example will look like this: 
 <code> <code>
Line 19: Line 19:
   "variables": ["Realm.ISAAC.variable.isaacCounter.value"],    "variables": ["Realm.ISAAC.variable.isaacCounter.value"],
   "events": ["ISAAC.examples.addOne","ISAAC.examples.removeOne"],    "events": ["ISAAC.examples.addOne","ISAAC.examples.removeOne"],
-  "subsystemExternalId": "BlocksISE"+  "subsystemExternalId": "Blocks"
 } }
 </code> </code>
Line 34: Line 34:
 //events// (optional, string array) An array of tasks specified as name.group.task exposed as Isaac events. This allow the task to be called from i.e. an ISAAC schedule. //events// (optional, string array) An array of tasks specified as name.group.task exposed as Isaac events. This allow the task to be called from i.e. an ISAAC schedule.
  
 +
 +===Sending log messages from Blocks===
 +
 +The driver exposes a callable named //log// that can be used in task programming to log messages to ISAAC.