Skip to content

A Swift class for reading and playing with neural recordings in NSx files

Notifications You must be signed in to change notification settings

edmerix/openNSx-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

openNSx in Swift

An object-oriented approach to dealing with neural data stored in Blackrock's NSx files, for substantially speedier reading of header and/or raw data in Swift projects.

Usage

Example usage is given in ExampleFileRead.swift Briefly:

let raw = openNSx()
raw.open(fileName: "~/Data/exampleFile.ns5")

// what time did the file start?
print("File start in local time: \(raw.startTimeFormatted)")

// read in a channel:
let data = raw.readChannel(chan: 41)

// and away you go with your analyses or plotting...

About

A Swift class for reading and playing with neural recordings in NSx files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages