Scripts Overview
Basic facts before getting into the details
What are scripts?
Scripts allow a constrained mechanism of customizing the operation of the implanted device for the individual user. The firmware of the system establishes the constraints so that the script programmer can adjust the functionality of the system without the danger of making it behave in an unsafe manner.
The PM can be controlled using an assembly-like scripting language that is used in text files with the file type .nnpscript. Scripts are wirelessly uploaded and run directly on the PM. They enable autonomous operation, state management, stimulation control, and data logging without requiring a continuous connection to a wireless control device.
Key Features:
- Low-level control of device hardware
- Event-driven and scheduled execution
- Persistent variable storage across script runs
- Direct Object Dictionary (OD) access
- Network Message Transport (NMT) commands
- Millisecond-precision timing control
Coming Next
The next several pages will establish the file structure, syntax, commands, and workflows needed to generate and operate a script on the COSMIIC System.