How to Interpret Digital Input Data

How to Interpret Digital Input Data

Introduction

In Raster Plot, Central can visualize digital inputs as separate pins, but the data is not saved as separate channels for each pin. Rather, the state of all sixteen pins makes up a single 16-bit integer value. Additional information can be found at the following links:

https://en.wikipedia.org/wiki/Integer_(computer_science) 

https://en.wikipedia.org/wiki/Binary_number

NEV File

The .nev file contains the raw 16-bit integer value, not the binary value. When loading the .nev file in Matlab, the values will be found in NEV.Data.SerialDigitalIO.UnparsedData. 



For those who wish to look at the data in binary, running the Matlab function dec2bin() will convert the decimal values to binary:



In the above example, the "digin1" properties were set to "16-bit on falling edge" in Central's Hardware Configuration. Pins D0, D1, D1, D2, D3, and D4 were individually set from HIGH to LOW and then reset to HIGH before moving on to the next pin. Therefore, the least significant bit gets assigned to D0, the second least significant bit to D1, and so on, where the digital input to D15 is assigned to the most significant bit in the 16-bit number.

Those with more familiarity with Matlab variable types may prefer to run cellstr(dec2bin(NEV.Data.SerialDigitalIO.UnparsedData)) in order to output the data into a cell array:



    • Related Articles

    • Neural Signal Processor Input Maximum Input Characteristics

      Defining MaximumsThe maximum input characteristics information provided below is directly extracted from the Maximum Ratings which is normally mentioned inside the technical datasheets associated with the installed electronics behind the Analog and ...
    • CerePlex Direct Input Maximums

      Defining MaximumsThe maximum input characteristics information provided below is directly extracted from the Maximum Ratings which is normally mentioned inside the technical datasheets associated with the installed electronics behind the Analog and ...
    • Signal Processing Flow Diagram

      The attached document shows how various signal processing steps and Central signal processing features are applied to the neural data stream from Blackrock analog and digital (CerePlex) systems.
    • PTP Data Alignment

      Note: If you are recording data with both the NSP and Gemini hubs, update to 7.6.1. Background Timestamping has fundamentally changed from operating on a nominal 30 kHz clock to Precision Time Protocol (PTP) on Gemini hardware. This is a departure ...
    • MATLAB Interfaces For Blackrock Microsystems Data Acquisition Systems

      Introduction Blackrock has several functions for looking at and interacting with data collected through our neural signal processors. These functions are available for post-recording processing (Neural Processing MATLAB Kit - NPMK) or for interacting ...