Command Line Application#

oni-repl is a simple read-eval-print loop (REPL) for liboni.

Code:

open-ephys/liboni

Compatibility:

Any ONI-compliant hardware

Download:

Latest Version

This program provides low-level control over a single Acquisition Context and can be used to control ONI-compliant hardware to perform the following:

  • Parameterize and initialize an Acquisition Context

  • Examine the Device Table

  • Examine device hub information

  • Interact with individual devices

    • Read device registers

    • Write device registers

    • Stream Frame data

  • Write data from device streaming channels to disk

  • Bulk initialize device register state

Note

oni-repl was created for hardware debugging and as a test program for liboni. However, its simplicity and lack of abstraction compared to Bonsai.ONIX make it useful as an example of how to use liboni and for quickly examining hardware state and hub firmware versions.

   Jon Newman @ MIT                     **
   Jie Zhang @ MIT                     ////
   Aarón Cuevas López @ UPV             ///.
   Josh Seigle @ Allen                  ///,.
   Jakob Voigts @ MIT                   *///,
                     *.                  ///,,
                   ,####/                ///,,,
                 ,,,,/####//             *///,,.
               ,,,,,   //##////           ///,,,
             ,,,,,      ,///#/////        ///.,,,
           ,,,,,          //// //////     *///,,,,
         ,,,,,             ,////  /////,   /// ,,,,
        ,,,,                 ////   ,/////.///  ,,,
     .,,,,                    .////    ,///##//  ,,,
   .,,,,                        ////      */###/ .,,,
  ,///***,,..........,,,...      ,////      /##(///,,,
     .,,,,,,**,,..................,((((,..../(((((((((.
          .,......,                .*(((/...,(((,,,(###
               .........              ////   ///.  ///,
                    ........,          ,///* */// ////
   Open Ephys Org.       .,......,       //// ///.///
                              ........,   *///(/////
   Supporting open science         .,......,//((((//
   since 2010.                          ....,/(##(/
                                             .,###.

   +--------------------+-------+-------+-------+-------+---------------------
   |                    |       |Firm.  |Read   |Wrt.   |
   |Dev. idx            |ID     |ver.   |size   |size   |Desc.
   +--------------------+-------+-------+-------+-------+---------------------
00 |00000: 0x00.0x00    |10     |1      |12     |32     |Open Ephys test device
01 |00256: 0x01.0x00    |10     |1      |12     |32     |Open Ephys test device
02 |00512: 0x02.0x00    |10     |1      |12     |32     |Open Ephys test device
03 |00768: 0x03.0x00    |10     |1      |12     |32     |Open Ephys test device
   +--------------------+-------+-------+-------+-------+---------------------